JSIP API v1.2
November 2006

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:
java.io.Serializable

public class InvalidArgumentException
extends java.lang.Exception

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

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

InvalidArgumentException

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


InvalidArgumentException

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

Parameters:
message - the detail message.

InvalidArgumentException

public InvalidArgumentException(java.lang.String message,
                                java.lang.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 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