Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
28
Task/Exceptions/NetRexx/exceptions.netrexx
Normal file
28
Task/Exceptions/NetRexx/exceptions.netrexx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref symbols nobinary
|
||||
|
||||
-- =============================================================================
|
||||
class RExceptions public
|
||||
|
||||
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
method test() public signals RExceptions.TakeException
|
||||
if (1 == 1) then signal RExceptions.TakeException()
|
||||
return
|
||||
|
||||
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
method main(args = String[]) public static
|
||||
do
|
||||
RExceptions().test()
|
||||
catch ex = Exception
|
||||
say ex.toString()
|
||||
end
|
||||
|
||||
return;
|
||||
|
||||
-- =============================================================================
|
||||
class RExceptions.TakeException public extends Exception
|
||||
|
||||
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
method TakeException() public
|
||||
super('I resent that!')
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue