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    @SuppressWarnings("serial")
011    public class ProfileException extends java.lang.Exception {
012        
013        /**
014         * Constructs an instance of <code>ProfileException</code> with the specified detail message.
015         * @param msg the detail message.
016         */
017        public ProfileException(String msg) {
018            super(msg);
019        }
020        
021        
022        /**
023         * Constructs an instance of <code>ProfileException</code> with the specified 
024         * cause and detail message.
025         * @param msg the detail message.
026         * @param cause the underlying cause of the exception 
027         */
028        public ProfileException(String msg, Throwable cause) {
029            super(msg, cause);
030        }
031        
032    }