XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
xs::errors Namespace Reference

Functions

std::string decode (Result res)
 
void show (Result res, bool softwareReset=false)
 
void show (const char *msg, bool softwareReset=false)
 

Variables

static const std::unordered_map< int, const char * > levelNames
 
static const std::unordered_map< int, const char * > summaryNames
 
static const std::unordered_map< int, const char * > moduleNames
 
static const std::unordered_map< int, const char * > descriptionNames
 

Function Documentation

◆ decode()

std::string xs::errors::decode ( Result res)
inline
Here is the caller graph for this function:

◆ show() [1/2]

void xs::errors::show ( const char * msg,
bool softwareReset = false )
inline

◆ show() [2/2]

void xs::errors::show ( Result res,
bool softwareReset = false )
inline
Here is the call graph for this function:

Variable Documentation

◆ descriptionNames

const std::unordered_map<int, const char *> xs::errors::descriptionNames
static
Initial value:
= {
{0, "Success"},
{0x3FF, "Invalid result value"},
{0x3FE, "Timeout"},
{0x3FD, "Out of range"},
{0x3FC, "Already exists"},
{0x3FB, "Cancel requested"},
{0x3FA, "Not found"},
{0x3F9, "Already initialized"},
{0x3F8, "Not initialized"},
{0x3F7, "Invalid handle"},
{0x3F6, "Invalid pointer"},
{0x3F5, "Invalid address"},
{0x3F4, "Not implemented"},
{0x3F3, "Out of memory"},
{0x3F2, "Misaligned size"},
{0x3F1, "Misaligned address"},
{0x3F0, "Busy"},
{0x3EF, "No data"},
{0x3EE, "Invalid combination"},
{0x3ED, "Invalid enum value"},
{0x3EC, "Invalid size"},
{0x3EB, "Already done"},
{0x3EA, "Not authorized"},
{0x3E9, "Too large"},
{0x3E8, "Invalid selection"}}

◆ levelNames

const std::unordered_map<int, const char *> xs::errors::levelNames
static
Initial value:
= {
{0, "Success"}, {1, "Info"}, {0x1F, "Fatal"}, {0x1E, "Reset"}, {0x1D, "Reinitialize"}, {0x1C, "Usage"}, {0x1B, "Permanent"}, {0x1A, "Temporary"}, {0x19, "Status"}}

◆ moduleNames

const std::unordered_map<int, const char *> xs::errors::moduleNames
static

◆ summaryNames

const std::unordered_map<int, const char *> xs::errors::summaryNames
static
Initial value:
= {
{0, "Success"},
{1, "No operation"},
{2, "Would block"},
{3, "Out of resource"},
{4, "Not found"},
{5, "Invalid state"},
{6, "Not supported"},
{7, "Invalid argument"},
{8, "Wrong argument"},
{9, "Canceled"},
{10, "Status changed"},
{11, "Internal"},
{63, "Invalid result value"}}