mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-20 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,50 @@
|
||||
package
|
||||
{
|
||||
import flash.events.ErrorEvent;
|
||||
import flash.events.UncaughtErrorEvent;
|
||||
import flash.system.Capabilities;
|
||||
|
||||
public class GlobalErrorCatch
|
||||
{
|
||||
|
||||
public function GlobalErrorCatch()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function setupGlobalErrorListener(param1:UncaughtErrorEvent) : String
|
||||
{
|
||||
var _loc4_:String = null;
|
||||
var _loc2_:UncaughtErrorEvent = UncaughtErrorEvent(param1);
|
||||
var _loc3_:Boolean = gMainFrame.clientInfo.accountType == Utility.INTERNAL;
|
||||
if(_loc2_)
|
||||
{
|
||||
if(!_loc3_)
|
||||
{
|
||||
_loc2_.preventDefault();
|
||||
}
|
||||
if(_loc2_.error is Error)
|
||||
{
|
||||
if(Capabilities.isDebugger)
|
||||
{
|
||||
_loc4_ = Error(_loc2_.error).getStackTrace();
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc4_ = Error(_loc2_.error).message;
|
||||
}
|
||||
}
|
||||
else if(_loc2_.error is ErrorEvent)
|
||||
{
|
||||
_loc4_ = ErrorEvent(_loc2_.error).text;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc4_ = _loc2_.error.toString();
|
||||
}
|
||||
}
|
||||
return _loc4_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user