LuciadCPillar 2026.0
Loading...
Searching...
No Matches
luciad::InvalidArgumentException Class Reference

The exception that is thrown when one of the arguments provided to a method is not valid. More...

#include <luciad/Exception.h>

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

Public Member Functions

 InvalidArgumentException (std::string message)
 Creates an exception that can be thrown when one of the arguments provided to a method is not valid.
 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.
Public Member Functions inherited from luciad::Exception
 Exception (std::string message)
 Initializes a new instance of the Exception class with a specified error message.
 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.
virtual ~Exception ()
std::optional< ExceptiongetInnerException () const
 Returns the inner exception that caused this exception.
std::string getStackTrace () const
 Returns the string representation of the stack trace including all the inner exceptions stack traces.
std::string what () const
 Returns the message that describes the error.

Detailed Description

The exception that is thrown when one of the arguments provided to a method is not valid.

Remarks
ArgumentException is thrown when a method is invoked and at least one of the passed arguments does not meet the parameter specification of the called method.

Constructor & Destructor Documentation

◆ InvalidArgumentException() [1/2]

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

Creates an exception that can be thrown when one of the arguments provided to a method is not valid.

Parameters
messagethe message that describes the error

◆ InvalidArgumentException() [2/2]

luciad::InvalidArgumentException::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.

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