API reference
API reference
Select your platform
No SDKs available
No versions available

Error Class

It represents an error response from the server. It contains error information such as the error code, http status code, technical message, and displayable message. It's used whenever the server needs to communicate an error or failure to the client.

Constructors

Error ( code , message , httpCode )
Signature
Oculus.Platform.Models.Error.Error(int code, string message, int httpCode)
Parameters
code: int
message: string
httpCode: int

Fields

Code : readonly int
It's a type of integer that represents the error code: UNKNOWN_ERROR:1 AUTHENTICATION_ERROR:2 NETWORK_ERROR:3 STORE_INSTALLATION_ERROR:4 CALLER_NOT_SIGNED:5 UNKNOWN_SERVER_ERROR:6 PERMISSIONS_FAILURE:7
Signature
readonly int Oculus.Platform.Models.Error.Code
HttpCode : readonly int
It contains the HTTP status code for the error. More information about the http code can be found here.
Signature
readonly int Oculus.Platform.Models.Error.HttpCode
Message : readonly string
Technical description of what went wrong intended for developers. For use in logs or developer consoles.
Signature
readonly string Oculus.Platform.Models.Error.Message