LuciadCPillar 2026.1.02
Loading...
Searching...
No Matches
luciad::ErrorInfo Class Referencefinal

This class exposes details for a failed method call. More...

#include <luciad/ErrorInfo.h>

Public Member Functions

 ErrorInfo (ErrorCode errorCode)
 Constructs error info using an error code.
 ErrorInfo (ErrorCode errorCode, const std::string &message)
 Constructs error info using an error code and a message.
ErrorCode getErrorCode () const
 Returns the error's code.
const std::string & getMessage () const
 Returns the error's message.

Detailed Description

This class exposes details for a failed method call.

It contains :

  • An error message explaining why the call failed.
  • An ErrorCode that identifies the general category of the failure, independent of the message text.

Related article: Error handling conventions used in the API The exception type depends on the context of the call, please refer to the related documentation.

Constructor & Destructor Documentation

◆ ErrorInfo() [1/2]

luciad::ErrorInfo::ErrorInfo ( ErrorCode errorCode)
explicit

Constructs error info using an error code.

The message is derived from the error code.

Parameters
errorCodeThe error's code.
Since
2026.1

◆ ErrorInfo() [2/2]

luciad::ErrorInfo::ErrorInfo ( ErrorCode errorCode,
const std::string & message )
explicit

Constructs error info using an error code and a message.

Parameters
errorCodeThe error's code.
messageThe error's message.

Member Function Documentation

◆ getErrorCode()

ErrorCode luciad::ErrorInfo::getErrorCode ( ) const
inline

Returns the error's code.

Returns
the error's code.

◆ getMessage()

const std::string & luciad::ErrorInfo::getMessage ( ) const
inline

Returns the error's message.

Returns
the error's message.