001    package ca.uhn.hl7v2.conf;
002    
003    /**
004     * Represents something wrong with a profile.  This is distinguished from 
005     * something that is wrong with a message according to a profile (in the latter
006     * case, an HL7Exception might be thrown when the message is validated against 
007     * the profile).  
008     * @author Bryan Tripp
009     */
010    public class ProfileException extends java.lang.Exception {
011        
012        /**
013         * Constructs an instance of <code>ProfileException</code> with the specified detail message.
014         * @param msg the detail message.
015         */
016        public ProfileException(String msg) {
017            super(msg);
018        }
019        
020        
021        /**
022         * Constructs an instance of <code>ProfileException</code> with the specified 
023         * cause and detail message.
024         * @param msg the detail message.
025         * @param cause the underlying cause of the exception 
026         */
027        public ProfileException(String msg, Throwable cause) {
028            super(msg, cause);
029        }
030        
031    }