LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::StatusErr Struct Reference

Derived class for system errors.

#include <nrg_status.h>

Inheritance diagram for nrg::StatusErr:
nrg::Status

Public Member Functions

 StatusErr (int e=errno)
 
- Public Member Functions inherited from nrg::Status
 Status ()
 Default Constructor, creates a no-error status.
 
 Status (bool ok, int err=0)
 Constructor with the given error-status and errno for system-errors.
 
 Status (const char *custom)
 Constructor for custom errors, with the specified error string.
 
 operator bool () const
 bool conversion operator
 

Additional Inherited Members

- Public Types inherited from nrg::Status
enum  : int { Ok, InternalError, SystemError }
 Enumeration for error type.
 
- Public Attributes inherited from nrg::Status
enum nrg::Status:: { ... }  type
 Enumeration for error type.
 
int sys_errno
 The associated errno for the error, or 0 if not a system error.
 
const char * desc
 Statically-allocated description of the error.
 

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