Class NullArgumentException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NullArgumentException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NullArgumentException()
      Default constructor.
      NullArgumentException​(java.lang.Object caller, int errorCode, java.lang.String message, java.lang.Throwable cause, java.lang.String... parameters)
      Instantiates a new Null argument exception.
      NullArgumentException​(java.lang.String variableName)  
      NullArgumentException​(java.lang.String variableName, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()  
      ErrorCodeInfo getErrorCodeInfo()
      This methods returns ErrorCodeInfo object.
      java.util.List<ErrorStackInfo> getErrorsStack()
      This method returns list of ErrorStackInfo, the list is not filled automatically.
      java.lang.String getModule()  
      java.lang.String[] getParameters()  
      void retrieveErrorCodeInfo()
      Sets errorCodeInfo object
      void retrieveErrorsStack()
      Sets errorsStack list
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • NullArgumentException

        public NullArgumentException​(java.lang.Object caller,
                                     int errorCode,
                                     java.lang.String message,
                                     java.lang.Throwable cause,
                                     java.lang.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​(java.lang.String variableName)
        Parameters:
        variableName - name of the argument that should not be null.
      • NullArgumentException

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

      • getCode

        public int getCode()
      • getModule

        public java.lang.String getModule()
      • getErrorsStack

        public java.util.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 java.lang.String[] getParameters()