nn::boss::GetErrorCode Functionnn::Result GetErrorCode( u32 * pOut, TaskResultCode targetResult );
| Name | Description | |
|---|---|---|
| out | pOut | Buffer for storing error codes. |
| out | targetResult | Target result codes. |
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). |
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