mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 04:26:32 +00:00
31 lines
408 B
ActionScript
31 lines
408 B
ActionScript
package tests
|
|
{
|
|
|
|
public class TestTry
|
|
{
|
|
public function run():*
|
|
{
|
|
var i:int = 0;
|
|
i = 7;
|
|
try
|
|
{
|
|
trace("try body");
|
|
}
|
|
catch (e:DefinitionError)
|
|
{
|
|
trace("catched DefinitionError");
|
|
}
|
|
catch (e:Error)
|
|
{
|
|
trace("Error message:" + e.message);
|
|
trace("Stacktrace:" + e.getStackTrace());
|
|
}
|
|
finally
|
|
{
|
|
trace("Finally part");
|
|
}
|
|
trace("end");
|
|
}
|
|
}
|
|
}
|