PlayerIO

The fastest way to build online games without breaking a sweat.

HTML5 (Javascript) Client Reference

javascript (html5) PlayerIOError class informationClass PlayerIOError

Language: Javascript (HTML5)

Instances of this class are returned in all error callbacks and contain information about the error that occurred.

Example

Here is an example of authenticating and then handling an UnknownGame error:

Properties

 
code :string

The PlayerIO error code for this error

message :string

The error message for this error

stack :object

The stack for this error, if any. The type depends on the current browser.

Methods

 
toString ():

Get a string representation of error

PlayerIOError.code

code :string

The PlayerIO error code for this error

PlayerIOError.message

message :string

The error message for this error

PlayerIOError.stack

stack :object

The stack for this error, if any. The type depends on the current browser.

PlayerIOError.toString

toString ():

Get a string representation of error