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
Result::IsSuccess Retrieval successful.
ResultUnexpect An unexpected result code (result code for which an error code is not allocated) is passed.
(This Result is also returned when the pOut parameter is NULL.)
ResultIpcNotSessionInitialized The session has not been initialized.
This Result is returned if this function is called before the Initialize function is called. Always call the Initialize function before using 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 (TaskResultCode).

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


CONFIDENTIAL