Pasha Bibko Util Library
Loading...
Searching...
No Matches
DefaultError Struct Reference

Default error class for Uti::ReturnVal. More...

#include <ReturnVal.h>

Public Member Functions

 DefaultError ()
 Default constructor, sets the message to "NO REASON PROVIDED".
 
 DefaultError (const char *_message)
 Provide an error message for the error to carry.
 

Public Attributes

const charmessage
 A pointer to a c-string error message, not owned by the class/object.
 

Detailed Description

Default error class for Uti::ReturnVal.

Simple error type that just holds an error message. Meant to be used as a temporary error until proper handling is put in place.

Constructor & Destructor Documentation

◆ DefaultError() [1/2]

DefaultError ( )
inline

Default constructor, sets the message to "NO REASON PROVIDED".

◆ DefaultError() [2/2]

DefaultError ( const char _message)
inline

Provide an error message for the error to carry.

Note
The class does not have any ownership to the message. If the message goes out of scope before access it will cause read-acess violations.

Member Data Documentation

◆ message

const char* message

A pointer to a c-string error message, not owned by the class/object.


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