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

The implementation of the ErrorSpace interface for the GoogleError canonical error space. More...

#include <error_space.h>

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

Public Types

using code_type = GoogleError
 

Public Member Functions

 GoogleErrorSpace (const GoogleErrorSpace &other)=delete
 
virtual ~GoogleErrorSpace ()=default
 
GoogleErrorSpaceoperator= (const GoogleErrorSpace &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 GoogleErrorSpace. 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< GoogleErrorSpace >
 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

The implementation of the ErrorSpace interface for the GoogleError canonical error space.

Member Typedef Documentation

◆ code_type

Constructor & Destructor Documentation

◆ GoogleErrorSpace()

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

◆ ~GoogleErrorSpace()

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

Member Function Documentation

◆ GetInstance()

static ErrorSpace const* asylo::error::GoogleErrorSpace::GetInstance ( )
inlinestatic

Gets the singleton instance of GoogleErrorSpace.

Returns
The one instance of GoogleErrorSpace.

◆ operator=()

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

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