RADLib
RADical C++ application framework
RADCore::RADError Class Reference

Structured error object returned by RADResult and newer APIs. More...

#include <RADCore.h>

Public Member Functions

 RADError ()=default
 Creates a no-error object. More...
 
 RADError (int code, std::string message)
 Creates an error with code and message. More...
 
bool hasError () const
 Returns true when this object represents an error. More...
 
int code () const
 Returns numeric error code; 0 means no error. More...
 
const std::string & message () const
 Returns human-readable error message. More...
 

Detailed Description

Structured error object returned by RADResult and newer APIs.

Constructor & Destructor Documentation

◆ RADError() [1/2]

RADCore::RADError::RADError ( )
default

Creates a no-error object.

◆ RADError() [2/2]

RADCore::RADError::RADError ( int  code,
std::string  message 
)
inline

Creates an error with code and message.

Member Function Documentation

◆ code()

int RADCore::RADError::code ( ) const
inline

Returns numeric error code; 0 means no error.

◆ hasError()

bool RADCore::RADError::hasError ( ) const
inline

Returns true when this object represents an error.

◆ message()

const std::string& RADCore::RADError::message ( ) const
inline

Returns human-readable error message.


The documentation for this class was generated from the following file: