MetaPlatformSDK_Error

Inherits: RefCounted

Represents an error received from the Meta Platform SDK.

Description

Represents an error received from the Meta Platform SDK.

Retrieved from MetaPlatformSDK_Message.error.

Properties

int

code

0

String

displayable_message

""

int

http_code

0

String

message

""


Property Descriptions

int code = 0

  • int get_code ( )

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


String displayable_message = ""

  • String get_displayable_message ( )

Human readable description of the error that can be displayed to the user. Might be the empty string if there is no user-appropriate description available. Not intended to be parsed as it might change at any time or be translated.


int http_code = 0

  • int get_http_code ( )

It contains the HTTP status code for the error. More information about the http code can be found here.


String message = ""

  • String get_message ( )

Technical description of what went wrong intended for developers. For use in logs or developer consoles.