org.opensaml.artifact
Class InvalidArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalArgumentException
                  extended byorg.opensaml.artifact.InvalidArgumentException
All Implemented Interfaces:
SAMLArtifactChecking, Serializable

public class InvalidArgumentException
extends IllegalArgumentException
implements SAMLArtifactChecking

Indicates a invalid argument to a method or constructor. A special constructor is provided: InvalidArgumentException( int, int ). Use this constructor if an unexpected length is encountered.

Author:
Tom Scavo
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.opensaml.artifact.SAMLArtifactChecking
HANDLE_LENGTH, IDENTIFIER_LENGTH, INVALID_ARG_ERROR_MSG, LENGTH_ERROR_MSG, NULL_ARG_ERROR_MSG, PARSE_ERROR_MSG, PARSER_ERROR_MSG, TYPE_CODE_ERROR_MSG
 
Constructor Summary
InvalidArgumentException()
          Constructs a InvalidArgumentException object with a default detail message.
InvalidArgumentException(int found, int expected)
          Constructs a InvalidArgumentException object with a detail message that mentions the two given lengths.
InvalidArgumentException(String message)
          Constructs a InvalidArgumentException object with the specified detail message.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidArgumentException

public InvalidArgumentException()
Constructs a InvalidArgumentException object with a default detail message.


InvalidArgumentException

public InvalidArgumentException(String message)
Constructs a InvalidArgumentException object with the specified detail message.

Parameters:
message - the detail message

InvalidArgumentException

public InvalidArgumentException(int found,
                                int expected)
Constructs a InvalidArgumentException object with a detail message that mentions the two given lengths.

Parameters:
found - the found length
expected - the expected length


Copyright ? 2005 UCAID. All Rights Reserved.