JSIP API v1.2
November 2006

javax.sip
Class SipException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.sip.SipException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DialogDoesNotExistException, ObjectInUseException, PeerUnavailableException, ProviderDoesNotExistException, TooManyHopsException, TransactionAlreadyExistsException, TransactionDoesNotExistException, TransactionUnavailableException, TransportAlreadySupportedException, 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.

Author:
BEA Systems, NIST
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.

Parameters:
message - the error message of this Exception.

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.

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems