The
ErrorUtil utility class is an all-static class with methods for working with Error.
public static function clone(e:Error):Error
Returns a shallow copy by reference of this specified error.
Parameters
Returns
| Error — a shallow copy by reference of this specified error.
|
public static function copy(e:Error):Error
Returns a deep copy by value of this specified error.
Parameters
Returns
| Error — a deep copy by value of this specified error.
|
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
| Boolean — true if the two Errors are equal by reference.
|
public static function toSource(e:Error, ... rest):String
Returns a string representing the source code of the object.
Parameters
Returns
| String — a string representing the source code of the object.
|