Packagevegas.util
Classpublic class ErrorUtil

The ErrorUtil utility class is an all-static class with methods for working with Error.



Public Methods
 MethodDefined by
  
clone(e:Error):Error
[static] Returns a shallow copy by reference of this specified error.
ErrorUtil
  
copy(e:Error):Error
[static] Returns a deep copy by value of this specified error.
ErrorUtil
  
equals(e1:Error = null, e2:Error = null):Boolean
[static] Compares if two Errors are equal by reference.
ErrorUtil
  
toSource(e:Error, ... rest):String
[static] Returns a string representing the source code of the object.
ErrorUtil
Method detail
clone()method
public static function clone(e:Error):Error

Returns a shallow copy by reference of this specified error.

Parameters
e:Error

Returns
Error — a shallow copy by reference of this specified error.
copy()method 
public static function copy(e:Error):Error

Returns a deep copy by value of this specified error.

Parameters
e:Error

Returns
Error — a deep copy by value of this specified error.
equals()method 
public static function equals(e1:Error = null, e2:Error = null):Boolean

Compares if two Errors are equal by reference.

Parameters
e1:Error (default = null)
 
e2:Error (default = null)

Returns
Booleantrue if the two Errors are equal by reference.
toSource()method 
public static function toSource(e:Error, ... rest):String

Returns a string representing the source code of the object.

Parameters
e:Error
 
... rest

Returns
String — a string representing the source code of the object.