Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new RecursiveExceptionHandler example
git-svn-id: https://smali.googlecode.com/svn/trunk@562 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
- Loading branch information
JesusFreke@JesusFreke.com
authored and
JesusFreke@JesusFreke.com
committed
Jan 12, 2010
1 parent
b2e1e20
commit daa8cef
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.class public LMain; | ||
.super Ljava/lang/Object; | ||
|
||
.method public static main([Ljava/lang/String;)V | ||
.registers 3 | ||
|
||
:second_handler | ||
:first_try_start | ||
new-instance v0, Ljava/lang/RuntimeException; | ||
invoke-direct {v0}, Ljava/lang/RuntimeException;-><init>()V | ||
throw v0 | ||
:first_try_end | ||
.catch Ljava/lang/Exception; {:first_try_start .. :first_try_end} :first_handler | ||
:first_handler | ||
:second_try_start | ||
new-instance v0, Ljava/lang/RuntimeException; | ||
invoke-direct {v0}, Ljava/lang/RuntimeException;-><init>()V | ||
throw v0 | ||
:second_try_end | ||
.catch Ljava/lang/Exception; {:second_try_start .. :second_try_end} :second_handler | ||
.end method |