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