THROWS
Description
Used to declare the type of exception that a method triggers. It is
part of the method prototype.
Syntax
|
1 |
methodname ( {arguments} ) THROWS ExceptionType { , ExceptionType, ... } |
|
Parameter |
Description |
|---|---|
|
methodname |
Name of the method that throws an |
|
arguments |
Arguments of the method that throws an exception. |
|
ExceptionType |
Object of type Throwable. Usually the object type |
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 section called “Defining a THROWS clause” in Users Guide. For
more information about exception handling, see the section called “Exception handling in
PowerBuilder” in Application Techniques.