SipException.java :  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sip » Java Open Source

Java Open Source » 6.0 JDK Modules » Java Advanced Imaging 
Java Advanced Imaging » javax » sip » SipException.java
/**
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * Unpublished - rights reserved under the Copyright Laws of the United States.
 * Copyright  2003 Sun Microsystems, Inc. All rights reserved.
 * Copyright  2005 BEA Systems, Inc. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * This distribution may include materials developed by third parties. 
 *
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *
 * Module Name   : JSIP Specification
 * File Name     : SipException.java
 * Author        : Phelim O'Doherty
 *
 *  HISTORY
 *  Version   Date      Author              Comments
 *  1.1     08/10/2002  Phelim O'Doherty    
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */

package javax.sip;



/**

 * A SipException is thrown when a general SIP exception is encountered, when

 * no other specialized exception defined in this specification can handle

 * the error.

 *

 * @author BEA Systems, NIST
 * @version 1.2

 */



public class SipException extends Exception {



    /**

     * Constructs a new <code>SipException</code>

     */

    public SipException() {

        super();

    }



    /**

     * Constructs a new <code>SipException</code> with the specified error

     * message.

     *

     * @param message the error message of this Exception.

     */

    public SipException(String message) {

        super(message);

    }



    /**

    * Constructs a new <code>SipException</code> with the specified error

    * message and specialized cause that triggered this error condition.

    *

    * @param  message the detail of the error message

    * @param  cause  the specialized cause that triggered this exception

    */

    public SipException(String message, Throwable cause) {
        super(message);
        m_Cause = cause;
    }

    
    /**
     * Returns the cause of this throwable or null if the cause is 
     * nonexistent or unknown. (The cause is the throwable that caused this 
     * throwable to get thrown.) This implementation returns the cause that 
     * was supplied via the constructor requiring a Throwable.
     *
     * @return the cause of this throwable or null if the cause is 
     * nonexistent or unknown.
     */
    public Throwable getCause() {
       return(m_Cause);
    }

    /**
     * The specialized cause that triggered this Exception. This cause
     * informs an application of the underlying implementation problem that
     * triggered this Exception.
     */
    protected Throwable m_Cause = null;      
    
    
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.