Package com.priint.pubserver.exception
Class NullArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.priint.pubserver.exception.NullArgumentException
- All Implemented Interfaces:
Serializable
Thrown if input validation fails. This is a runtime exception. It is a special case of an
IllegalArgumentException that signals
null arguments.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.NullArgumentException(Object caller, int errorCode, String message, Throwable cause, String... parameters) Instantiates a new Null argument exception.NullArgumentException(String variableName) NullArgumentException(String variableName, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NullArgumentException
public NullArgumentException(Object caller, int errorCode, String message, Throwable cause, String... parameters) Instantiates a new Null argument exception.- Parameters:
caller- the callererrorCode- the error codemessage- the messagecause- the causeparameters- the parameters
-
NullArgumentException
public NullArgumentException()Default constructor. It is recommended to useNullArgumentException(String)instead. -
NullArgumentException
- Parameters:
variableName- name of the argument that should not be null.
-
NullArgumentException
- Parameters:
variableName- name of the argument that should not be empty or null.message- the error message.
-
-
Method Details
-
getCode
public int getCode() -
getModule
-
getErrorsStack
This method returns list of ErrorStackInfo, the list is not filled automatically. To fill this list you need to call setErrorsStack() method manually.- Returns:
-
retrieveErrorsStack
public void retrieveErrorsStack()Sets errorsStack list -
getErrorCodeInfo
This methods returns ErrorCodeInfo object. This object is not filled automatically. To set this object you must call setErrorCodeInfo();- Returns:
-
retrieveErrorCodeInfo
public void retrieveErrorCodeInfo()Sets errorCodeInfo object -
getParameters
-