Raise
From REALbasicWiki
| Overall article skill | ✭ |
The Raise method raises the RuntimeException object passed, causing control to jump to the next exception handler.
Contents |
[edit] Prototype
sub Raise( exc as RuntimeException )
[edit] Discussion
Note that the exc parameter may be nil, in which case the method does nothing (tested in REALbasic 2007r5).
[edit] Sample Code
Function ParseTime(t as String) as Date
if ParsingFails then
raise new UnsupportedFormatException
end if
End Function
