1
8
9 import com.sekati.except.IThrowable;
10 import com.sekati.log.Logger;
11 import com.sekati.reflect.Stringifier;
12
13
16 class com.sekati.except.Throwable extends Error implements IThrowable {
17
18 private var type:String = "error";
19 private var name:String = "Throwable Error";
20 private var message:String;
21 private var _errorCode:String;
22 private var _stack:Array;
23 private var _thrower:Object;
24
25
32 private function Throwable(thrower:Object, errorCode:String, stack:Array) {
33 message = "@@@ " + name + " ['" + thrower + "']: " + errorCode;
34 Logger.$[type]( Stringifier.stringify( this ), this );
35 _errorCode = errorCode;
36 _thrower = thrower;
37 _stack = stack;
38 }
39
40
44 public function getErrorCode():String {
45 return _errorCode;
46 }
47
48
52 public function getThrower():Object {
53 return _thrower;
54 }
55
56
61 public function getStack():Array {
62 return _stack;
63 }
64
65
69 public function getType():String {
70 return type;
71 }
72
73
77 public function getName():String {
78 return name;
79 }
80 }