The APIs return error messages by raising exceptions that use the WDIExcp or WDIError structures. The error number identifies the general area in which the error occurred.
Table A-1 lists the error number ranges and their related areas.
Table A-1 Error Number Ranges and Related Areas
| Error Range | Impacted Area | 
|---|---|
| 
 10000 to 19999  | 
 System errors that can occur in all APIs.  | 
| 
 20000 to 29999  | 
 LSR API  | 
| 
 30000 to 39999  | 
 PSR API  | 
| 
 40000 to 49999  | 
 PSR Ancillary API  | 
| 
 60000 to 69999  | 
 Internet Services APIs  | 
| 
 70000 to 79999  | 
 Trouble Management API  | 
| 
 80000 to 89999  | 
 Work Management API  | 
| 
 90000 to 99999  | 
 Miscellaneous errors. These are not necessarily system related but could be encountered by multiple applications.  | 
The reason field in the WDIError and WDIExcp structures provides a text description of the error condition.