InvalidArgumentException Class

com.beasys.commerce.foundation.exception
InvalidArgumentException Class

public class InvalidArgumentException

    extends ApplicationException

Application exception used to signal that an invalid argument was passed to a method.

Note: Throughout this API documentation namespace refers to the resource bundle that contains the catalog of exception messages. Refer to the MessageCatalog API documentation for further details.

Related Topics

MessageCatalogException


Hierarchy
Object
  Throwable
    Exception
      ApplicationException
        InvalidArgumentException
All Implemented Interfaces

MessageCatalogException, Serializable
Direct Known Subclasses

InvalidConversionPolicyException, InvalidPriceException, InvalidQuantityException, InvalidUnitException

Field Summary

   
Fields from  com.beasys.commerce.foundation.exception.ApplicationException
embeddedException, logMessages, userMessages
 

Constructor Summary

InvalidArgumentException()

Constructs an InvalidArgumentException with no associated message.
InvalidArgumentException(InvalidArgumentException topException, InvalidArgumentException bottomException)

Constructs an InvalidArgumentException from two source InvalidArgumentExceptions by concatinating the screen and log messages of the two source InvalidArgumentExceptions.
InvalidArgumentException(String namespace, String messageKey, Exception exception)

Class constructor taking the namespace and key of the associated catalog message and an embedded exception.
InvalidArgumentException(String namespace, String messageKey, Object argument, Exception exception)

Class constructor taking the namespace and key of the associated catalog message, message parameter substitution argument, and an embedded exception.
InvalidArgumentException(String namespace, String messageKey, Object argument)

Class constructor taking the namespace and key of the associated catalog message and a message parameter substitution argument.
InvalidArgumentException(String namespace, String messageKey, Object arguments, Exception exception)

Class constructor taking the namespace and key of the associated catalog message, message parameter substitution arguments, and an embedded exception.
InvalidArgumentException(String namespace, String messageKey, Object arguments)

Class constructor taking the namespace and key of the associated catalog message and message parameter substitution arguments.
InvalidArgumentException(String namespace, String messageKey)

Class constructor taking the namespace and key of the associated catalog message.
InvalidArgumentException(String parameterName)

Class constructor.
 

Method Summary

 
Methods from  com.beasys.commerce.foundation.exception.ApplicationException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLocalizedMessage, getLogMessage, getLogMessages, getMessage, getUserMessage, getUserMessages, toString
 
Methods from  java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.beasys.commerce.foundation.exception.MessageCatalogException
addLogMessage, addLogMessage, addLogMessage, addMessage, addMessage, addMessage, addUserMessage, addUserMessage, addUserMessage, getEmbeddedException, getLogMessage, getLogMessages, getUserMessage, getUserMessages
 

Constructor Detail

InvalidArgumentException

public InvalidArgumentException()
Constructs an InvalidArgumentException with no associated message.

InvalidArgumentException

public InvalidArgumentException(InvalidArgumentException topException, 
                                InvalidArgumentException bottomException)
Constructs an InvalidArgumentException from two source InvalidArgumentExceptions by concatinating the screen and log messages of the two source InvalidArgumentExceptions. The messages of the first InvalidArgumentException will preceed those of the second in the constructed InvalidArgumentException. Furthermore, the new InvalidArgumentException will have the embedded exception of the first InvalidArgumentException associated with it.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey, 
                                Exception exception)
Class constructor taking the namespace and key of the associated catalog message and an embedded exception.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey, 
                                Object argument, 
                                Exception exception)
Class constructor taking the namespace and key of the associated catalog message, message parameter substitution argument, and an embedded exception.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey, 
                                Object argument)
Class constructor taking the namespace and key of the associated catalog message and a message parameter substitution argument.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey, 
                                Object[] arguments, 
                                Exception exception)
Class constructor taking the namespace and key of the associated catalog message, message parameter substitution arguments, and an embedded exception.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey, 
                                Object[] arguments)
Class constructor taking the namespace and key of the associated catalog message and message parameter substitution arguments.

InvalidArgumentException

public InvalidArgumentException(String namespace, 
                                String messageKey)
Class constructor taking the namespace and key of the associated catalog message.

InvalidArgumentException

public InvalidArgumentException(String parameterName)
Class constructor.