public final class DoorsStatusCode extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CANNOT_EDIT_MODULE
Status used when a command is executed to edit a module and no exclusive edit can be obtained for this module.
|
static int |
CANNOT_LOCK_OBJECT
Status used when a command is executed to edit in share mode a object and no lock can be acquired.
|
static int |
CLIENT_CRASH
Status used when a DXL execution generates an EXCEPTION_ACCESS_VIOLATION message and makes the DOORS client to crash.
|
static int |
DISABLED_USER_ACCOUNT
Status used when the user account has been disabled in DOORS.
|
static int |
DXL_BATCH_SECURITY
Status used when a DXL script cannot execute
because the DOORS database administrator has activated DXL security.
|
static int |
INVALID_CREDENTIALS
Status used when the user or password used does not match a valid DOORS registered user in the database.
|
static int |
INVALID_DOORS_PATH
Status used when the given DOORS client executable path is not valid.
|
static int |
INVALID_HOST
Status used when the host name does not resolve to a known DOORS database.
|
static int |
ITEM_DOES_NOT_EXIST
Status used when a command is executed on an item (module, folder or project)
that does not exist in the DOORS database.
|
static int |
LICENSE_ERROR
Status used when a DOORS license cannot be acquired to launch the DOORS client.
|
static int |
OBJECT_DOES_NOT_EXIST
Status used when a command is executed on an object
that does not exist in the DOORS module.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isStatusCode(Throwable error,
int statusCode)
Determines whether the specified exception matches a certain status code.
|
public static final int DXL_BATCH_SECURITY
public static final int INVALID_DOORS_PATH
public static final int INVALID_HOST
public static final int INVALID_CREDENTIALS
public static final int CANNOT_EDIT_MODULE
public static final int ITEM_DOES_NOT_EXIST
public static final int OBJECT_DOES_NOT_EXIST
public static final int CANNOT_LOCK_OBJECT
public static final int LICENSE_ERROR
public static final int CLIENT_CRASH
public static final int DISABLED_USER_ACCOUNT
public static boolean isStatusCode(Throwable error, int statusCode)
error
- the error thrown when reading a DOORS model or executing a command.statusCode
- the status code to be checked.true
if the exception matches the specified status code, false
otherwise.