JAIN SIP API
v1.1 - 23rd June 2003

javax.sip
Class SipException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.sip.SipException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ObjectInUseException, PeerUnavailableException, TooManyHopsException, TransactionAlreadyExistsException, TransactionDoesNotExistException, TransactionUnavailableException, TransportNotSupportedException

public class SipException
extends java.lang.Exception

A SipException is thrown when a general SIP exception is encountered, when no other specialized exception defined in this specification can handle the error.

See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable m_Cause
          The specialized cause that triggered this Exception.
 
Constructor Summary
SipException()
          Constructs a new SipException
SipException(java.lang.String message)
          Constructs a new SipException with the specified error message.
SipException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new SipException with the specified error message and specialized cause that triggered this error condition.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this throwable or null if the cause is nonexistent or unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Cause

protected java.lang.Throwable m_Cause
The specialized cause that triggered this Exception. This cause informs an application of the underlying implementation problem that triggered this Exception.

Constructor Detail

SipException

public SipException()
Constructs a new SipException


SipException

public SipException(java.lang.String message)
Constructs a new SipException with the specified error message.


SipException

public SipException(java.lang.String message,
                    java.lang.Throwable cause)
Constructs a new SipException with the specified error message and specialized cause that triggered this error condition.

Parameters:
message - the detail of the error message
cause - the specialized cause that triggered this exception
Method Detail

getCause

public java.lang.Throwable getCause()
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.

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause of this throwable or null if the cause is nonexistent or unknown.

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems