1 /** 2 * com.sekati.except.Exception 3 * @version 1.0.5 4 * @author jason m horwitz | sekati.com 5 * Copyright (C) 2007 jason m horwitz, Sekat LLC. All Rights Reserved. 6 * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php 7 */ 8 9 import com.sekati.except.Throwable; 10 11 /** 12 * Core {@link Throwable} Exception error to be subclassed for error specificity and logging. 13 * {@code Usage: 14 * function test():Void { 15 * try { 16 * throw new Exception(this, "Test exception ErrorCode message", arguments); 17 * } catch (e:Exception) { 18 * Catcher.handle(e); 19 * } 20 * } 21 * test("hello world!", false, 13); 22 * } 23 * 24 * @see {@link com.sekati.except.Catcher} 25 */ 26 class com.sekati.except.Exception extends Throwable { 27 28 private var name:String = "Exception Error"; 29 private var type:String = "error"; 30 31 /** 32 * Exception Constructor 33 * @param thrower (Object) origin of the error 34 * @param message (String) error message to display 35 * @param stack (Array) thrower arguments stack 36 * @return Void 37 */ 38 public function Exception(thrower:Object, message:String, stack:Array) { 39 super( thrower, message, stack ); 40 } 41 }