NIST SIP Parser and Stack (v1.2) API

javax.sip
Class SipException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.sip.SipException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ObjectInUseException, PeerUnavailableException, TooManyHopsException, TransactionAlreadyExistsException, TransactionDoesNotExistException, TransactionUnavailableException, TransportNotSupportedException

public class SipException
extends 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.

Version:
1.1
Author:
Sun Microsystems
See Also:
Serialized Form

Constructor Summary
SipException()
          Constructs a new SipException
SipException(String message)
          Constructs a new SipException with the specified error message.
SipException(String message, Throwable cause)
          Constructs a new SipException with the specified error message and specialized cause that triggered this error condition.
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SipException

public SipException()
Constructs a new SipException


SipException

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


SipException

public SipException(String message,
                    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 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.

Returns:
the cause of this throwable or null if the cause is nonexistent or unknown.

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.