Asylo
Public Types | Public Member Functions | Static Public Member Functions | List of all members
asylo::error::PosixErrorSpace Class Reference

An implementation of the ErrorSpace interface for POSIX error codes. More...

#include <posix_error_space.h>

Inheritance diagram for asylo::error::PosixErrorSpace:
Inheritance graph
[legend]
Collaboration diagram for asylo::error::PosixErrorSpace:
Collaboration graph
[legend]

Public Types

using code_type = PosixError
 

Public Member Functions

 PosixErrorSpace (const PosixErrorSpace &other)=delete
 
virtual ~PosixErrorSpace ()=default
 
PosixErrorSpaceoperator= (const PosixErrorSpace &other)=delete
 
- Public Member Functions inherited from asylo::error::ErrorSpace
 ErrorSpace ()=default
 
 ErrorSpace (const ErrorSpace &other)=delete
 
virtual ~ErrorSpace ()=default
 
ErrorSpaceoperator= (const ErrorSpace &other)=delete
 

Static Public Member Functions

static ErrorSpace const * GetInstance ()
 Gets the singleton instance of PosixErrorSpace. More...
 
- Static Public Member Functions inherited from asylo::error::ErrorSpace
static ErrorSpace const * Find (const std::string &name)
 Finds and returns an ErrorSpace singleton pointer whose SpaceName() equals name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from asylo::error::ErrorSpaceImplementationHelper< PosixErrorSpace >
 ErrorSpaceImplementationHelper (const std::string &space_name, const std::string &default_error_string="Unrecognized Code")
 Constructs an ErrorSpaceImplementationHelper and registers it as space_name. More...
 
void AddTranslationMapEntry (int code, const std::string &error_string, GoogleError google_error_code)
 Adds an interpretation of an error code as both a string and GoogleError. More...
 
std::string SpaceName () const override
 Gets a name that uniquely identifies the error space. More...
 
std::string String (int code) const override
 Gets a string that describes the error code within the space. More...
 
GoogleError GoogleErrorCode (int code) const override
 Converts code to an appropriate value in the GoogleError enum. More...
 

Detailed Description

An implementation of the ErrorSpace interface for POSIX error codes.

Member Typedef Documentation

◆ code_type

Constructor & Destructor Documentation

◆ PosixErrorSpace()

asylo::error::PosixErrorSpace::PosixErrorSpace ( const PosixErrorSpace other)
delete

◆ ~PosixErrorSpace()

virtual asylo::error::PosixErrorSpace::~PosixErrorSpace ( )
virtualdefault

Member Function Documentation

◆ GetInstance()

static ErrorSpace const* asylo::error::PosixErrorSpace::GetInstance ( )
static

Gets the singleton instance of PosixErrorSpace.

Returns
The one instance of PosixErrorSpace.

◆ operator=()

PosixErrorSpace& asylo::error::PosixErrorSpace::operator= ( const PosixErrorSpace other)
delete

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