Index: lams_common/src/flash/org/lamsfoundation/lams/common/util/LFError.as =================================================================== diff -u -r250d8ae9560179d6ca75fc8127f5913bbe0437d3 -r1c176a7db89196cd3869dbc9d9599f3bbf4c8bf0 --- lams_common/src/flash/org/lamsfoundation/lams/common/util/LFError.as (.../LFError.as) (revision 250d8ae9560179d6ca75fc8127f5913bbe0437d3) +++ lams_common/src/flash/org/lamsfoundation/lams/common/util/LFError.as (.../LFError.as) (revision 1c176a7db89196cd3869dbc9d9599f3bbf4c8bf0) @@ -1,5 +1,7 @@ -import org.lamsfoundation.lams.common.util.* +import org.lamsfoundation.lams.common.util.* +import mx.controls.Alert; + /** * LFError * @@ -12,20 +14,39 @@ private var _fn:String; //Constructor - function LFError(msg:String,fn:String,ref:Object) { + function LFError(msg:String,fn:String,ref:Object,debugInfo:String) { super(msg); _fn = fn; - _ref = ref; + _ref = ref; + Debugger.log('Creating LFError instance:'+msg,Debugger.CRITICAL,'LFError','LFError'); + Debugger.log('Function:'+fn,Debugger.CRITICAL,'LFError','LFError'); + Debugger.log('Ref:'+ref,Debugger.CRITICAL,'LFError','LFError'); + Debugger.log('debugInfo:'+debugInfo,Debugger.CRITICAL,'LFError','LFError'); + } + + public function showErrorAlert(okHandler){ + var a:Alert; + if(okHandler != undefined){ + a = Alert.show(message,"__Error__",Alert.OK,null,okHandler,"alertIcon_gen",Alert.OK); + }else{ + a = Alert.show(message,"__Error__",Alert.OK,null,null,"alertIcon_gen",Alert.OK); + } + + a.setSize(500,250); + } + + public function showErrorConfirm(okHandler:Function, cancelHandler:Function){ + } public function get reference():Object{ - return _ref; - } + return _ref; + } - public function get fname():String{ - return _fn; - } + public function get fname():String{ + return _fn; + } } \ No newline at end of file