Handling Exceptions
SSOLite stored procedures
| • | The error text is always preceded by the string (SWERROR). |
| • | Each error has a unique ID, which is displayed at the end of the error text. |
For example,
SIGNAL SQLSTATE '38200' SET MESSAGE_TEXT = 'SW_GRAFTCOUNT:(SWERROR) Failed to get node ID (ID:001024)';
It is the application’s responsibility to handle any such database exceptions, and issue a rollback if appropriate.
The following table describes the different errors (and their unique IDs) that may be returned by the SSOLite stored procedures.
|
Stored Procedure |
|
Error Text |
|
|
|
MBox Queue Name(s) not found in database (ID:001008) |
|
|
|
Procedure details not found in database for procedure name= |
|
|
Procedure version not found in database for procedure name= |
|
|
|
Latest Released or Unreleased Procedure version not found in database for procedure name= |
|
|
|
Procedure version not found in database for procedure name= |
|
|
38200 |
Suspend type (suspend_type) is invalid, expected |
|
|
38200 |
Failed to get node ID (ID:001015) |
|
|
38200 |
Failed to get procedure ID (ID:001016) |
|
|
38200 |
Failed to get request ID (ID:001017) |
|
|
38200 |
Case (case_num) is already active (ID:001036) |
|
|
38200 |
Case (case_num) is dead (ID:001037) |
|
|
38200 |
Case (case_num) is already suspended (ID:001038) |
|
|
38200 |
Procedure and case information does not match (ID:001043) |
|
|
|
Failed to find case information for case: case_num (ID:001019) |
|
|
|
38200 |
Failed to get node ID (ID:001022) |
|
38200 |
Failed to get procedure ID (ID:001023) |
|
|
|
38200 |
Failed to get node ID (ID:001022) |
|
|
38200 |
Failed to get node ID (ID:001024) |
|
38200 |
Failed to get procedure ID (ID:001025) |
|
|
38200 |
Failed to get request ID (ID:001026) |
|
|
38200 |
Failed to get node ID (ID:001027) |
|
|
38200 |
Failed to get procedure ID (ID:001028) |
|
|
38200 |
Failed to get request ID (ID:001029) |
|
|
38200 |
Failed to get node ID (ID:001030) |
|
|
38200 |
Failed to get procedure ID (ID:001031) |
|
|
38200 |
Failed to get request ID (ID:001032) |
|
|
38200 |
Procedure and case information does not match (ID:001041) |
|
|
38200 |
Failed to get node ID (ID:001033) |
|
|
38200 |
Failed to get procedure ID (ID:001034) |
|
|
38200 |
Failed to get request ID (ID:001035) |
|
|
38200 |
Case (case_num) is dead (ID:001039) |
|
|
38200 |
Procedure and case information does not match (ID:001042) |