Class NullArgumentException

All Implemented Interfaces:
Serializable

public class NullArgumentException extends IllegalArgumentException
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 Details

    • NullArgumentException

      public NullArgumentException(Object caller, int errorCode, String message, Throwable cause, String... parameters)
      Instantiates a new Null argument exception.
      Parameters:
      caller - the caller
      errorCode - the error code
      message - the message
      cause - the cause
      parameters - the parameters
    • NullArgumentException

      public NullArgumentException()
      Default constructor. It is recommended to use NullArgumentException(String) instead.
    • NullArgumentException

      public NullArgumentException(String variableName)
      Parameters:
      variableName - name of the argument that should not be null.
    • NullArgumentException

      public NullArgumentException(String variableName, String message)
      Parameters:
      variableName - name of the argument that should not be empty or null.
      message - the error message.
  • Method Details

    • getCode

      public int getCode()
    • getModule

      public String getModule()
    • getErrorsStack

      public List<ErrorStackInfo> 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

      public ErrorCodeInfo 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

      public String[] getParameters()