LuciadCPillar 2025.0.11
Loading...
Searching...
No Matches
luciad::RuntimeException Class Referencefinal

The generic exception that is thrown during the normal operation. More...

#include <luciad/Exception.h>

Inheritance diagram for luciad::RuntimeException:
luciad::Exception

Public Member Functions

 RuntimeException (std::string message)
 Constructs the runtime exception with a detail message.
 RuntimeException (std::string message, const Exception &innerException)
 Constructs the runtime exception with a detail message and a cause.
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 generic exception that is thrown during the normal operation.

Constructor & Destructor Documentation

◆ RuntimeException() [1/2]

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

Constructs the runtime exception with a detail message.

Parameters
messageinformation on the type of error.

◆ RuntimeException() [2/2]

luciad::RuntimeException::RuntimeException ( std::string message,
const Exception & innerException )

Constructs the runtime exception with a detail message and a cause.

Parameters
messageinformation on the type of error.
innerExceptionwhen the runtime exception is caused by another exception.