Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -1,5 +1,5 @@
|
|||
class MyException : Exception
|
||||
{
|
||||
constructor new()
|
||||
<= new("MyException raised");
|
||||
<= super new("MyException raised");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
try
|
||||
{
|
||||
o.foo()
|
||||
foo()
|
||||
}
|
||||
catch:(MyException e)
|
||||
catch(MyException e)
|
||||
{
|
||||
// handle exceptions of type MyException and derived
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
o.foo() | on:(e)
|
||||
try
|
||||
{
|
||||
foo.fail()
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
// handle any type of exception
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue