Class NullArgumentException

All Implemented Interfaces:
Serializable

public class NullArgumentException extends ConsumerContractException
A null argument was provided. This error can only result for methods that define parameters. Consumers are not permitted to supply null values for method arguments.
See Also:
  • Constructor Details

    • NullArgumentException

      public NullArgumentException(String msg)
      Constructs a NullArgumentException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • NullArgumentException

      public NullArgumentException(String msg, Throwable t)
      Constructs a NullArgumentException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • NullArgumentException

      public NullArgumentException(Throwable t)
      Constructs a NullArgumentException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception