Rethrowing Exceptions : throw « Statement « Flash / Flex / ActionScript






Rethrowing Exceptions

 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        try
        {
            try
            {
                throw new Error();
            } catch (error:Error) {
                trace("inner handler");
                throw error;
            }
        } catch (error:Error) {
            trace("outer handler");
        }
    }
  }
}

        








Related examples in the same category

1.throw Error in a function