Raise

From REALbasicWiki

Jump to: navigation, search
Overall article skill Skill ranges from beginner (green) to expert (red)

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

[edit] See also

Personal tools
related