LuciadCPillar 2023.1.03
luciad::NullArgumentException Class Referencefinal

The exception that is thrown when nullptr is passed to a method that does not accept it as a valid argument. More...

#include <luciad/Exception.h>

Inheritance diagram for luciad::NullArgumentException:
luciad::InvalidArgumentException luciad::Exception

Public Member Functions

 NullArgumentException (std::string message)
 Creates an exception that can be thrown when nullptr is passed to a method that does not accept it as a valid argument. More...
 
 NullArgumentException (std::string message, const Exception &innerException)
 Creates an exception that can be thrown when nullptr is passed to a method that does not accept it as a valid argument. More...
 
- Public Member Functions inherited from luciad::InvalidArgumentException
 InvalidArgumentException (std::string message)
 Creates an exception that can be thrown when one of the arguments provided to a method is not valid. More...
 
 InvalidArgumentException (std::string message, const Exception &innerException)
 Creates an exception that can be thrown when one of the arguments provided to a method is not valid. More...
 
- Public Member Functions inherited from luciad::Exception
 Exception (std::string message)
 Initializes a new instance of the Exception class with a specified error message. More...
 
 Exception (std::string message, const Exception &innerException)
 Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
virtual ~Exception ()
 
std::optional< ExceptiongetInnerException () const
 Returns the inner exception that caused this exception. More...
 
std::string getStackTrace () const
 Returns the string representation of the stack trace including all the inner exceptions stack traces. More...
 
std::string what () const
 Returns the message that describes the error. More...
 

Detailed Description

The exception that is thrown when nullptr is passed to a method that does not accept it as a valid argument.

Constructor & Destructor Documentation

◆ NullArgumentException() [1/2]

luciad::NullArgumentException::NullArgumentException ( std::string  message)
explicit

Creates an exception that can be thrown when nullptr is passed to a method that does not accept it as a valid argument.

Parameters
messagethe message that describes the error

◆ NullArgumentException() [2/2]

luciad::NullArgumentException::NullArgumentException ( std::string  message,
const Exception innerException 
)

Creates an exception that can be thrown when nullptr is passed to a method that does not accept it as a valid argument.

Parameters
messagethe message that describes the error
innerExceptionan other exception that caused this exception