View Javadoc

1   package ca.uhn.hl7v2.conf;
2   
3   /**
4    * Represents something wrong with a profile.  This is distinguished from 
5    * something that is wrong with a message according to a profile (in the latter
6    * case, an HL7Exception might be thrown when the message is validated against 
7    * the profile).  
8    * 
9    * @author Bryan Tripp
10   */
11  @SuppressWarnings("serial")
12  public class ProfileException extends Exception {
13      
14      /**
15       * Constructs an instance of <code>ProfileException</code> with the specified detail message.
16       * @param msg the detail message.
17       */
18      public ProfileException(String msg) {
19          super(msg);
20      }
21      
22      
23      /**
24       * Constructs an instance of <code>ProfileException</code> with the specified 
25       * cause and detail message.
26       * @param msg the detail message.
27       * @param cause the underlying cause of the exception 
28       */
29      public ProfileException(String msg, Throwable cause) {
30          super(msg, cause);
31      }
32      
33  }