9 #include "../services/set.h"
97 char dialogMessage[0x800];
98 char fullscreenMessage[0x800];
112 char dialogMessage[0x800];
113 char fullscreenMessage[0x800];
150 return errorCode.
low!=0;
Result errorResultBacktraceShow(Result res, const ErrorResultBacktrace *backtrace)
Launches the applet for ErrorResultBacktrace.
Result errorResultBacktraceCreate(ErrorResultBacktrace *backtrace, s32 count, const Result *entries)
Creates an ErrorResultBacktrace struct.
Result errorCodeRecordShow(ErrorCode errorCode, u64 timestamp)
Launches the applet for displaying an error full-screen, using the specified ErrorCode and timestamp.
static void errorSystemSetCode(ErrorSystemConfig *c, ErrorCode errorCode)
Sets the error code.
Definition: error.h:249
static void errorApplicationSetNumber(ErrorApplicationConfig *c, u32 errorNumber)
Sets the error code number.
Definition: error.h:302
Result errorSystemCreate(ErrorSystemConfig *c, const char *dialog_message, const char *fullscreen_message)
Creates an ErrorSystemConfig struct.
static bool errorCodeIsValid(ErrorCode errorCode)
Checks whether the input ErrorCode is valid.
Definition: error.h:149
Result errorEulaShow(SetRegion RegionCode)
Launches the applet for displaying the EULA.
ErrorContextType
Error type for ErrorContext.type.
Definition: error.h:29
@ ErrorContextType_None
None.
Definition: error.h:30
@ ErrorContextType_FileSystem
FileSystem.
Definition: error.h:32
@ ErrorContextType_WebMediaPlayer
WebMediaPlayer.
Definition: error.h:33
@ ErrorContextType_Http
Http.
Definition: error.h:31
@ ErrorContextType_LocalContentShare
LocalContentShare.
Definition: error.h:34
Result errorApplicationShow(ErrorApplicationConfig *c)
Launches the applet with the specified config.
static void errorApplicationSetLanguageCode(ErrorApplicationConfig *c, u64 LanguageCode)
Sets the LanguageCode.
Definition: error.h:311
Result errorCodeShow(ErrorCode errorCode, bool jumpFlag, const ErrorContext *ctx)
Launches the applet for displaying the specified ErrorCode.
Result errorResultShow(Result res, bool jumpFlag, const ErrorContext *ctx)
Launches the applet for displaying the specified Result.
Result errorSystemUpdateEulaShow(SetRegion RegionCode, const ErrorEulaData *eula)
Launches the applet for displaying the system-update EULA.
Result errorApplicationCreate(ErrorApplicationConfig *c, const char *dialog_message, const char *fullscreen_message)
Creates an ErrorApplicationConfig struct.
static ErrorCode errorCodeCreate(u32 low, u32 desc)
Creates an ErrorCode.
Definition: error.h:126
static ErrorCode errorCodeCreateInvalid(void)
Creates an invalid ErrorCode.
Definition: error.h:141
ErrorType
Error type for ErrorCommonHeader.type.
Definition: error.h:12
@ ErrorType_Application
Application.
Definition: error.h:15
@ ErrorType_System
System.
Definition: error.h:14
@ ErrorType_Eula
EULA.
Definition: error.h:16
@ ErrorType_SystemUpdateEula
SystemUpdateEula.
Definition: error.h:19
@ ErrorType_Normal
Normal.
Definition: error.h:13
@ ErrorType_Pctl
Parental Controls.
Definition: error.h:17
@ ErrorType_Record
Record.
Definition: error.h:18
void errorSystemSetContext(ErrorSystemConfig *c, const ErrorContext *ctx)
Sets the ErrorContext.
static void errorSystemSetResult(ErrorSystemConfig *c, Result res)
Sets the error code, using the input Result.
Definition: error.h:258
static void errorSystemSetLanguageCode(ErrorSystemConfig *c, u64 LanguageCode)
Sets the LanguageCode.
Definition: error.h:267
Result errorSystemShow(ErrorSystemConfig *c)
Launches the applet with the specified config.
static ErrorCode errorCodeCreateResult(Result res)
Creates an ErrorCode with the input Result.
Definition: error.h:134
static Result errorResultRecordShow(Result res, u64 timestamp)
Launches the applet for displaying an error full-screen, using the specified Result and timestamp.
Definition: error.h:223
#define R_MODULE(res)
Returns the module ID of a result code.
Definition: result.h:14
#define R_DESCRIPTION(res)
Returns the description of a result code.
Definition: result.h:16
SetRegion
Region codes.
Definition: set.h:62
ApplicationErrorArg.
Definition: error.h:108
ErrorCommonHeader hdr
Common header.
Definition: error.h:109
u64 languageCode
See set.h.
Definition: error.h:111
u32 errorNumber
Raw decimal error number which is displayed in the dialog.
Definition: error.h:110
Error application config.
Definition: error.h:117
ErrorApplicationArg arg
Arg data.
Definition: error.h:118
Stores error-codes which are displayed as XXXX-XXXX, low for the former and desc for the latter.
Definition: error.h:23
u32 low
The module portion of the error, normally this should be set to module + 2000.
Definition: error.h:24
u32 desc
The error description.
Definition: error.h:25
Common error arg data.
Definition: error.h:56
ErrorCode errorCode
ErrorCode
Definition: error.h:58
ErrorCommonHeader hdr
Common header.
Definition: error.h:57
Result res
Result.
Definition: error.h:59
Error context.
Definition: error.h:38
Result res
Result.
Definition: error.h:42
u8 type
Type, see ErrorContextType.
Definition: error.h:39
Error arg data for EULA.
Definition: error.h:75
ErrorCommonHeader hdr
Common header.
Definition: error.h:76
SetRegion regionCode
SetRegion
Definition: error.h:77
Additional input storage data for errorSystemUpdateEulaShow.
Definition: error.h:81
Error arg data for certain errors with module PCTL.
Definition: error.h:63
Result res
Result.
Definition: error.h:65
ErrorCommonHeader hdr
Common header.
Definition: error.h:64
Error arg data for Record.
Definition: error.h:86
u64 timestamp
POSIX timestamp.
Definition: error.h:89
ErrorCommonHeader hdr
Common header.
Definition: error.h:87
ErrorCode errorCode
ErrorCode
Definition: error.h:88
ResultBacktrace.
Definition: error.h:69
s32 count
Total entries in the backtrace array.
Definition: error.h:70
SystemErrorArg.
Definition: error.h:93
ErrorCommonHeader hdr
Common header.
Definition: error.h:94
ErrorCode errorCode
ErrorCode
Definition: error.h:95
u64 languageCode
See set.h.
Definition: error.h:96
Error system config.
Definition: error.h:102
ErrorContext ctx
Optional error context.
Definition: error.h:104
ErrorSystemArg arg
Arg data.
Definition: error.h:103
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
#define NX_PACKED
Packs a struct so that it won't include padding bytes.
Definition: types.h:63
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21