-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1453ae0
commit 73b9307
Showing
40 changed files
with
1,024 additions
and
971 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
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
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
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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
try { | ||
// Comment below line, change the exception to MultipleDefinitionError, TypeError, ArgumentError, MacroExpansionError, or Exception | ||
ArgumentError.new("A").raise(); | ||
MultipleDefinitionError.new("AIEVN").raise(); | ||
print("TRY"); | ||
} | ||
catch MultipleDefinitionError { | ||
catch MultipleDefinitionError e { | ||
print("CATCH MultipleDefinitionError"); | ||
print(e.type()); | ||
} | ||
catch [TypeError, ArgumentError] { | ||
print("CATCH ArgumentError/TypeError"); | ||
} | ||
catch MacroExpansionError { | ||
print("CATCH MacroExpansionError"); | ||
} | ||
catch { | ||
print("CATCH Any Exception"); | ||
} | ||
else { | ||
print("ELSE"); | ||
} | ||
finally { | ||
print("FINALLY"); | ||
} | ||
//catch [TypeError, ArgumentError] { | ||
// print("CATCH ArgumentError/TypeError"); | ||
//} | ||
//catch MacroExpansionError { | ||
// print("CATCH MacroExpansionError"); | ||
//} | ||
//catch { | ||
// print("CATCH Any Exception"); | ||
//} | ||
//else { | ||
// print("ELSE"); | ||
//} | ||
//finally { | ||
// print("FINALLY"); | ||
//} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.