PlayerIO

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

Android Client Reference

Android  class documentationClass ErrorLog

Namespace: com.playerio
Language: Java

The Player.IO ErrorLog service.

Methods

 
public void
writeError (String error, String details, String stacktrace, HashMap<String,String> extraData)

Writes an entry to the error log

public void
writeError (String error, Throwable exception)

Writes an entry to the error log

public void
writeError (String error)

Writes an entry to the error log

ErrorLog.writeError

public void
writeError (String error, String details, String stacktrace, HashMap<String,String> extraData)

Writes an entry to the error log

Arguments

String error
A short string describing the error without details. Example 'Object not set to instance of an object'
String details
The message describing the error in detail. Example 'couldn't find the user 'bob' in the current game'
String stacktrace
The stacktrace (if available) of the error
HashMap<String,String> extraData
Any extra data you'd like to associate with the error log entry

ErrorLog.writeError

public void
writeError (String error, Throwable exception)

Writes an entry to the error log

Arguments

String error
A short string describing the error without details. Example 'Object not set to instance of an object'
Throwable exception
The stacktrace of this exception will automatically be written to the errorlog

ErrorLog.writeError

public void
writeError (String error)

Writes an entry to the error log

Arguments

String error
A short string describing the error without details. Example 'Object not set to instance of an object'