Asylo
Classes | Functions
asylo::error Namespace Reference

Classes

class  ErrorSpace
 All implementations of error spaces are derived from this abstract class. More...
 
class  ErrorSpaceImplementationHelper
 An intermediate template class that to help define an ErrorSpace subclass. More...
 
class  GoogleErrorSpace
 The implementation of the ErrorSpace interface for the GoogleError canonical error space. More...
 

Functions

ErrorSpace const * GetErrorSpace (ErrorSpaceAdlTag<::asylo::error::GoogleError > tag)
 Binds the class GoogleErrorSpace to the #GoogleError enum. More...
 
ErrorSpace const * GetErrorSpace (ErrorSpaceAdlTag<::absl::StatusCode > tag)
 Binds the class GoogleErrorSpace to the #absl::StatusCode enum. More...
 
enum ABSL_DEPRECATED ("Deprecated as part of Asylo's absl::Status migration. Use the functions " "from asylo/util/posix_errors.h or the matchers from " "asylo/util/posix_error_matchers.h instead.") PosixError
 The enum associated with the POSIX error-space. More...
 

Function Documentation

◆ ABSL_DEPRECATED()

class asylo::error::ABSL_DEPRECATED ( "Deprecated as part of Asylo's absl::Status migration. Use the functions " "from asylo/util/posix_errors.h or the matchers from " "asylo/util/posix_error_matchers.h instead."  )

The enum associated with the POSIX error-space.

An implementation of the ErrorSpace interface for POSIX error codes.

Binds the PosixErrorSpace class to the PosixError enum.

To avoid conflict with the macros defined in the <cerrno> system header, all the codes in this enum are prefixed with a "P_".

Deprecated:
Deprecated as part of Asylo's absl::Status migration. Use the functions from asylo/util/posix_errors.h or the matchers from asylo/util/posix_error_matchers.h instead.
Deprecated:
Deprecated as part of Asylo's absl::Status migration. Use the functions from asylo/util/posix_errors.h or the matchers from asylo/util/posix_error_matchers.h instead.
Deprecated:
Deprecated as part of Asylo's absl::Status migration. Use the functions from asylo/util/posix_errors.h or the matchers from asylo/util/posix_error_matchers.h instead.

Gets the singleton instance of PosixErrorSpace.

Returns
The one instance of PosixErrorSpace.

Gets the singleton instance of PosixErrorSpace.

Returns
The one instance of PosixErrorSpace.

◆ GetErrorSpace() [1/2]

ErrorSpace const* asylo::error::GetErrorSpace ( ErrorSpaceAdlTag<::asylo::error::GoogleError >  tag)

Binds the class GoogleErrorSpace to the #GoogleError enum.

◆ GetErrorSpace() [2/2]

ErrorSpace const* asylo::error::GetErrorSpace ( ErrorSpaceAdlTag<::absl::StatusCode >  tag)

Binds the class GoogleErrorSpace to the #absl::StatusCode enum.