THROWS
Description
Used to declare the type of exception that a method triggers.
It is part of the method prototype.
Syntax
|
1 |
<span>methodname</span> ( {<span>arguments</span>} ) THROWS <span>ExceptionType</span> { , <span>ExceptionType</span>, ... } |
|
Parameter |
Description |
|---|---|
|
methodname |
Name of the method that throws an exception. |
|
arguments |
Arguments of the method that throws an |
|
ExceptionType |
Object of type Throwable. Usually the |
Usage
Internal use only.
You do not type or otherwise add the THROWS clause
to function calls in a PowerBuilder script. However, you can add
a THROWS clause to any PowerBuilder function
or to any user event that is not defined by a pbm event ID.
For more information about adding a THROWS clause
to a function or event prototype, see the PowerBuilder Users
Guide. For more information about exception handling,
see Application Techniques.