Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unpublished - rights reserved under the Copyright Laws of the United States. Copyright � 2003 Sun Microsystems, Inc. All rights reserved. Copyright � 2005 BEA Systems, Inc. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module Name : JSIP Specification File Name : InvalidArgumentException.java Author : Phelim O'Doherty HISTORY Version Date Author Comments 1.1 08/10/2002 Phelim O'Doherty ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
package javax.sip;

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

Author(s):
BEA Systems, NIST
Version:
1.2
public class InvalidArgumentException extends Exception {

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

    
Create an InvalidArgumentException with a detail message.

Parameters:
message the detail message.
    public InvalidArgumentException(String message) {
        super(message);
    }

    
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
    public InvalidArgumentException(String messageThrowable cause) {
        super(message);
         = cause;
    }

    
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.
    public Throwable getCause() {
           return();
    }

    
The specialized cause that triggered this Exception. This cause informs an application of the underlying implementation problem that triggered this Exception.
    protected Throwable m_Cause = null;
New to GrepCode? Check out our FAQ X