Packagecom.electrotank.electroserver4.errors
Classpublic class EsError

This class is used to represent a type of error, like UserNamExists or RoomNotFound. All error types are established as static variables in the Errors class.



Public Methods
 MethodDefined by
  
EsError(tmpid:Number, desc:String)
Creates a new instance of the EsError class.
EsError
  
getDescription():String
Gets the error description.
EsError
  
getId():Number
Gets the error id.
EsError
Constructor detail
EsError()constructor
public function EsError(tmpid:Number, desc:String)

Creates a new instance of the EsError class.

Parameters
tmpid:Number — Numeric error id.
 
desc:String — Short description of the error.
Method detail
getDescription()method
public function getDescription():String

Gets the error description.

Returns
String — Returns the error description.
getId()method 
public function getId():Number

Gets the error id.

Returns
Number — The error id.