NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sip
Class InvalidArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.sip.InvalidArgumentException
All Implemented Interfaces:
Serializable

public class InvalidArgumentException
extends Exception

This exception class is thrown by an implementation when given an invalid argument such as a invalid numerical value.

Version:
1.2
Author:
BEA Systems, NIST
See Also:
Serialized Form

Constructor Summary
InvalidArgumentException()
          Create an InvalidArgumentException with no detail message.
InvalidArgumentException(String message)
          Create an InvalidArgumentException with a detail message.
InvalidArgumentException(String message, Throwable cause)
          Constructs a new InvalidArgumentException 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

InvalidArgumentException

public InvalidArgumentException()
Create an InvalidArgumentException with no detail message.


InvalidArgumentException

public InvalidArgumentException(String message)
Create an InvalidArgumentException with a detail message.

Parameters:
message - the detail message.

InvalidArgumentException

public InvalidArgumentException(String message,
                                Throwable cause)
Constructs a new InvalidArgumentException 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.

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

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

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