nn::boss::GetErrorCode Function

Syntax

nn::Result GetErrorCode(
     u32 * pOut,
     TaskResultCode targetResult
);

Arguments

Name Description
out pOut Buffer for storing error codes.
out targetResult Target result codes.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Retrieval successful.
ResultUnexpect An unexpected result code (result code for which an error code is not allocated) is passed. (Even when the pOut parameter is NULL, this result is returned.)
ResultIpcNotSessionInitialized Either the session is not initialized or there are incompatible permissions. This Result value is returned if you call this function before the Initialize or InitializePrivileged function. Always call the Initialize or InitializePrivileged function first when you use the BOSS library.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

The error code is acquired from the task result code (nn::boss::TaskResultCode).

The task result code is acquired with nn::boss::Task::GetResult.


CONFIDENTIAL