a transaction problem More...

#include <Error.h>

Collaboration diagram for Error:

Public Member Functions

 Error ()=default
 
 Error (const err_type c)
 support implicit conversions More...
 
 Error (const err_type c, const ErrorDetailPointer &d)
 
 operator bool () const
 
void update (const Error &)
 if necessary, stores the given error information (if any) More...
 
void update (const err_type c, const ErrorDetailPointer &d)
 convenience wrapper for update(Error) More...
 
void clear ()
 switch to the default "no error information" state More...
 

Public Attributes

err_type category = ERR_NONE
 primary error classification (or ERR_NONE) More...
 
ErrorDetailPointer detail
 additional details about the error More...
 

Detailed Description

Definition at line 18 of file Error.h.

Constructor & Destructor Documentation

◆ Error() [1/3]

Error::Error ( )
default

Referenced by clear(), and update().

◆ Error() [2/3]

Error::Error ( const err_type  c)
inline

Definition at line 21 of file Error.h.

◆ Error() [3/3]

Error::Error ( const err_type  c,
const ErrorDetailPointer d 
)
inline

Definition at line 22 of file Error.h.

Member Function Documentation

◆ clear()

void Error::clear ( )
inline

Definition at line 33 of file Error.h.

References Error().

Referenced by ConnStateData::add(), HttpRequest::clearError(), and HttpRequest::init().

◆ operator bool()

Error::operator bool ( ) const
inlineexplicit

Definition at line 24 of file Error.h.

References category, and ERR_NONE.

◆ update() [1/2]

void Error::update ( const err_type  c,
const ErrorDetailPointer d 
)
inline

Definition at line 30 of file Error.h.

References Error(), and update().

Referenced by update().

◆ update() [2/2]

Member Data Documentation

◆ category

◆ detail

ErrorDetailPointer Error::detail

Definition at line 36 of file Error.h.

Referenced by update().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors