CTR Pia  4.11.3
Game Communication Engine
nn::pia::common::ErrorHandler Class Reference

This class is used for error handling. More...

Static Public Member Functions

static ModuleType GetModuleTypeFromResult (const nn::Result &result)
 Gets the Pia module in which the error occurred. More...
 
static bool IsPiaError (const nn::Result &result)
 Determines whether there is an error in the Pia module. More...
 
static void TraceResult (const nn::Result &result)
 Displays detailed information for nn::Result values. More...
 
static void TraceResult (u64 traceFlags, const nn::Result &result)
 Displays detailed information for nn::Result values. More...
 

Detailed Description

This class is used for error handling.


Revision History:

2012-07-11 Deleted the Severity-related code that was scheduled for removal.

2011-12-07 Added a table to the GetSeverity page that shows the relationship between each Result used in the Pia module and the associated severity.

Member Function Documentation

static ModuleType nn::pia::common::ErrorHandler::GetModuleTypeFromResult ( const nn::Result &  result)
static

Gets the Pia module in which the error occurred.

Parameters
[in]resultSpecifies the nn::Result value to be checked by the module.
Returns
Returns the module type using nn::pia::ModuleType.
static bool nn::pia::common::ErrorHandler::IsPiaError ( const nn::Result &  result)
static

Determines whether there is an error in the Pia module.

Parameters
[in]resultSpecifies the nn::Result value to check.
Returns
Returns true if the value is a Pia module Result, and returns false otherwise.
static void nn::pia::common::ErrorHandler::TraceResult ( const nn::Result &  result)
static

Displays detailed information for nn::Result values.

Parameters
[in]resultThe nn::Result value to trace.
static void nn::pia::common::ErrorHandler::TraceResult ( u64  traceFlags,
const nn::Result &  result 
)
static

Displays detailed information for nn::Result values.

Parameters
[in]traceFlagsSpecifies trace flags. For more information, see TraceFlag.
[in]resultThe nn::Result value to trace.