NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.stack
Class SIPServerException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--gov.nist.javax.sip.stack.SIPServerException
All Implemented Interfaces:
Serializable

public class SIPServerException
extends Exception

Exception that gets generated when the Stack encounters an error.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Constructor Summary
SIPServerException(int rc)
          Constructor when we are given only the error code
SIPServerException(int rc, gov.nist.javax.sip.message.SIPMessage sipMessage)
          Constructor that constructs the message from the standard Error messages.
SIPServerException(int rc, gov.nist.javax.sip.message.SIPMessage message, String msg)
          Constructor for when we have a return code and a SIPMessage.
SIPServerException(int rc, String msg)
          Constructor for when we have the error code and some error info.
SIPServerException(String response)
          Constructor when we have a pre-formatted response.
 
Method Summary
 int getRC()
           
 gov.nist.javax.sip.message.SIPMessage getSIPMessage()
          Get the message that generated this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

SIPServerException

public SIPServerException(int rc)
Constructor when we are given only the error code

Parameters:
rc - Return code.

SIPServerException

public SIPServerException(int rc,
                          String msg)
Constructor for when we have the error code and some error info.

Parameters:
rc - SIP Return code
msg - Error message

SIPServerException

public SIPServerException(int rc,
                          gov.nist.javax.sip.message.SIPMessage message,
                          String msg)
Constructor for when we have a return code and a SIPMessage.

Parameters:
rc - SIP error code
message - SIP Error message
msg - Auxiliary error message

SIPServerException

public SIPServerException(String response)
Constructor when we have a pre-formatted response.

Parameters:
response - Pre-formatted response to send back to the other end.

SIPServerException

public SIPServerException(int rc,
                          gov.nist.javax.sip.message.SIPMessage sipMessage)
Constructor that constructs the message from the standard Error messages.

Parameters:
rc - is the SIP Error code.
sipMessage - is the SIP Message that caused the exception.
Method Detail

getRC

public int getRC()

getSIPMessage

public gov.nist.javax.sip.message.SIPMessage getSIPMessage()
Get the message that generated this exception.

Returns:
-- the message that generated this exception.

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.