libnx
v4.8.0
|
Wrapper for using the error LibraryApplet. More...
Go to the source code of this file.
Data Structures | |
struct | ErrorCode |
Stores error-codes which are displayed as XXXX-XXXX, low for the former and desc for the latter. More... | |
struct | ErrorContext |
Error context. More... | |
struct | ErrorCommonHeader |
Common header for the start of the arg storage. More... | |
struct | ErrorCommonArg |
Common error arg data. More... | |
struct | ErrorPctlArg |
Error arg data for certain errors with module PCTL. More... | |
struct | ErrorResultBacktrace |
ResultBacktrace. More... | |
struct | ErrorEulaArg |
Error arg data for EULA. More... | |
struct | ErrorEulaData |
Additional input storage data for errorSystemUpdateEulaShow. More... | |
struct | ErrorRecordArg |
Error arg data for Record. More... | |
struct | ErrorSystemArg |
SystemErrorArg. More... | |
struct | ErrorSystemConfig |
Error system config. More... | |
struct | ErrorApplicationArg |
ApplicationErrorArg. More... | |
struct | ErrorApplicationConfig |
Error application config. More... | |
Enumerations | |
enum | ErrorType { ErrorType_Normal = 0 , ErrorType_System = 1 , ErrorType_Application = 2 , ErrorType_Eula = 3 , ErrorType_Pctl = 4 , ErrorType_Record = 5 , ErrorType_SystemUpdateEula = 8 } |
Error type for ErrorCommonHeader.type. More... | |
enum | ErrorContextType { ErrorContextType_None = 0 , ErrorContextType_Http = 1 , ErrorContextType_FileSystem = 2 , ErrorContextType_WebMediaPlayer = 3 , ErrorContextType_LocalContentShare = 4 } |
Error type for ErrorContext.type. More... | |
Functions | |
static ErrorCode | errorCodeCreate (u32 low, u32 desc) |
Creates an ErrorCode. More... | |
static ErrorCode | errorCodeCreateResult (Result res) |
Creates an ErrorCode with the input Result. More... | |
static ErrorCode | errorCodeCreateInvalid (void) |
Creates an invalid ErrorCode. | |
static bool | errorCodeIsValid (ErrorCode errorCode) |
Checks whether the input ErrorCode is valid. More... | |
Result | errorResultShow (Result res, bool jumpFlag, const ErrorContext *ctx) |
Launches the applet for displaying the specified Result. More... | |
Result | errorCodeShow (ErrorCode errorCode, bool jumpFlag, const ErrorContext *ctx) |
Launches the applet for displaying the specified ErrorCode. More... | |
Result | errorResultBacktraceCreate (ErrorResultBacktrace *backtrace, s32 count, const Result *entries) |
Creates an ErrorResultBacktrace struct. More... | |
Result | errorResultBacktraceShow (Result res, const ErrorResultBacktrace *backtrace) |
Launches the applet for ErrorResultBacktrace. More... | |
Result | errorEulaShow (SetRegion RegionCode) |
Launches the applet for displaying the EULA. More... | |
Result | errorSystemUpdateEulaShow (SetRegion RegionCode, const ErrorEulaData *eula) |
Launches the applet for displaying the system-update EULA. More... | |
Result | errorCodeRecordShow (ErrorCode errorCode, u64 timestamp) |
Launches the applet for displaying an error full-screen, using the specified ErrorCode and timestamp. More... | |
static Result | errorResultRecordShow (Result res, u64 timestamp) |
Launches the applet for displaying an error full-screen, using the specified Result and timestamp. More... | |
Result | errorSystemCreate (ErrorSystemConfig *c, const char *dialog_message, const char *fullscreen_message) |
Creates an ErrorSystemConfig struct. More... | |
Result | errorSystemShow (ErrorSystemConfig *c) |
Launches the applet with the specified config. More... | |
static void | errorSystemSetCode (ErrorSystemConfig *c, ErrorCode errorCode) |
Sets the error code. More... | |
static void | errorSystemSetResult (ErrorSystemConfig *c, Result res) |
Sets the error code, using the input Result. More... | |
static void | errorSystemSetLanguageCode (ErrorSystemConfig *c, u64 LanguageCode) |
Sets the LanguageCode. More... | |
void | errorSystemSetContext (ErrorSystemConfig *c, const ErrorContext *ctx) |
Sets the ErrorContext. More... | |
Result | errorApplicationCreate (ErrorApplicationConfig *c, const char *dialog_message, const char *fullscreen_message) |
Creates an ErrorApplicationConfig struct. More... | |
Result | errorApplicationShow (ErrorApplicationConfig *c) |
Launches the applet with the specified config. More... | |
static void | errorApplicationSetNumber (ErrorApplicationConfig *c, u32 errorNumber) |
Sets the error code number. More... | |
static void | errorApplicationSetLanguageCode (ErrorApplicationConfig *c, u64 LanguageCode) |
Sets the LanguageCode. More... | |
Wrapper for using the error LibraryApplet.
enum ErrorContextType |
Error type for ErrorContext.type.
enum ErrorType |
Error type for ErrorCommonHeader.type.
Result errorApplicationCreate | ( | ErrorApplicationConfig * | c, |
const char * | dialog_message, | ||
const char * | fullscreen_message | ||
) |
Creates an ErrorApplicationConfig struct.
c | ErrorApplicationConfig struct. |
dialog_message | UTF-8 dialog message. |
fullscreen_message | UTF-8 fullscreen message, displayed when the user clicks on "Details". Optional, can be NULL (which disables displaying Details). |
|
inlinestatic |
Sets the LanguageCode.
c | ErrorApplicationConfig struct. |
LanguageCode | LanguageCode, see set.h. |
|
inlinestatic |
Sets the error code number.
c | ErrorApplicationConfig struct. |
errorNumber | Error code number. Raw decimal error number which is displayed in the dialog. |
Result errorApplicationShow | ( | ErrorApplicationConfig * | c | ) |
Launches the applet with the specified config.
c | ErrorApplicationConfig struct. |
Creates an ErrorCode.
low | The module portion of the error, normally this should be set to module + 2000. |
desc | The error description. |
Creates an ErrorCode with the input Result.
Wrapper for errorCodeCreate.
res | Input Result. |
|
inlinestatic |
Launches the applet for displaying an error full-screen, using the specified ErrorCode and timestamp.
errorCode | ErrorCode |
timestamp | POSIX timestamp. |
Result errorCodeShow | ( | ErrorCode | errorCode, |
bool | jumpFlag, | ||
const ErrorContext * | ctx | ||
) |
Launches the applet for displaying the specified ErrorCode.
errorCode | ErrorCode |
jumpFlag | Jump flag, normally this is true. |
ctx | Optional ErrorContext, can be NULL. Unused when jumpFlag=false. Ignored on pre-4.0.0, since it's only available for [4.0.0+]. |
Launches the applet for displaying the EULA.
RegionCode | SetRegion |
Result errorResultBacktraceCreate | ( | ErrorResultBacktrace * | backtrace, |
s32 | count, | ||
const Result * | entries | ||
) |
Creates an ErrorResultBacktrace struct.
backtrace | ErrorResultBacktrace struct. |
count | Total number of entries. |
entries | Input array of Result. |
Result errorResultBacktraceShow | ( | Result | res, |
const ErrorResultBacktrace * | backtrace | ||
) |
Launches the applet for ErrorResultBacktrace.
backtrace | ErrorResultBacktrace struct. |
res | Result |
Launches the applet for displaying an error full-screen, using the specified Result and timestamp.
res | Result |
timestamp | POSIX timestamp. |
Result errorResultShow | ( | Result | res, |
bool | jumpFlag, | ||
const ErrorContext * | ctx | ||
) |
Launches the applet for displaying the specified Result.
res | Result |
jumpFlag | Jump flag, normally this is true. |
ctx | Optional ErrorContext, can be NULL. Unused when jumpFlag=false. Ignored on pre-4.0.0, since it's only available for [4.0.0+]. |
Result errorSystemCreate | ( | ErrorSystemConfig * | c, |
const char * | dialog_message, | ||
const char * | fullscreen_message | ||
) |
Creates an ErrorSystemConfig struct.
c | ErrorSystemConfig struct. |
dialog_message | UTF-8 dialog message. |
fullscreen_message | UTF-8 fullscreen message, displayed when the user clicks on "Details". Optional, can be NULL (which disables displaying Details). |
|
inlinestatic |
Sets the error code.
c | ErrorSystemConfig struct. |
errorCode | ErrorCode |
void errorSystemSetContext | ( | ErrorSystemConfig * | c, |
const ErrorContext * | ctx | ||
) |
Sets the ErrorContext.
c | ErrorSystemConfig struct. |
ctx | ErrorContext, NULL to clear it. |
|
inlinestatic |
Sets the LanguageCode.
c | ErrorSystemConfig struct. |
LanguageCode | LanguageCode, see set.h. |
|
inlinestatic |
Sets the error code, using the input Result.
Wrapper for errorSystemSetCode.
c | ErrorSystemConfig struct. |
res | The Result to set. |
Result errorSystemShow | ( | ErrorSystemConfig * | c | ) |
Launches the applet with the specified config.
c | ErrorSystemConfig struct. |
Result errorSystemUpdateEulaShow | ( | SetRegion | RegionCode, |
const ErrorEulaData * | eula | ||
) |
Launches the applet for displaying the system-update EULA.
RegionCode | SetRegion |
eula | EULA data. Address must be 0x1000-byte aligned. |