public class DataVaultException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
ALREADY_EXISTS |
static int |
CONTENT_PROVIDER_NOT_INSTALLED |
static int |
CONVERSION_ERROR |
static int |
DATA_TYPE_ERROR |
static int |
DOES_NOT_EXIST |
static int |
INVALID_ARG |
static int |
INVALID_PASSWORD |
static int |
IO_READ_ERROR |
static int |
IO_WRITE_ERROR |
static int |
LOCKED |
static int |
MIGRATION_ERROR |
static int |
NAME_TOO_LONG |
static int |
PASSWORD_EXPIRED |
static int |
PASSWORD_REQUIRED |
static int |
PASSWORD_REQUIRES_DIGIT |
static int |
PASSWORD_REQUIRES_LOWER |
static int |
PASSWORD_REQUIRES_SPECIAL |
static int |
PASSWORD_REQUIRES_UPPER |
static int |
PASSWORD_UNDER_MIN_LENGTH |
static int |
PASSWORD_UNDER_MIN_UNIQUE |
static int |
UNKNOWN |
static int |
VALUE_TOO_LARGE |
Constructor and Description |
---|
DataVaultException(java.lang.String sMessage,
int iErrorCode)
Constructor.
|
DataVaultException(java.lang.String sMessage,
int iErrorCode,
DataVault.DVPasswordPolicy dvPasswordPolicy)
Constructor.
|
DataVaultException(java.lang.String sMessage,
int iErrorCode,
java.lang.Throwable cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DataVault.DVPasswordPolicy |
getDvPasswordPolicy() |
int |
getErrorCode()
Returns error code passed in constructor or set by setErrorCode
|
public static final int UNKNOWN
public static final int ALREADY_EXISTS
public static final int CONVERSION_ERROR
public static final int DOES_NOT_EXIST
public static final int INVALID_ARG
public static final int INVALID_PASSWORD
public static final int IO_READ_ERROR
public static final int IO_WRITE_ERROR
public static final int LOCKED
public static final int NAME_TOO_LONG
public static final int VALUE_TOO_LARGE
public static final int DATA_TYPE_ERROR
public static final int MIGRATION_ERROR
public static final int PASSWORD_REQUIRED
public static final int PASSWORD_UNDER_MIN_LENGTH
public static final int PASSWORD_REQUIRES_DIGIT
public static final int PASSWORD_REQUIRES_UPPER
public static final int PASSWORD_REQUIRES_LOWER
public static final int PASSWORD_REQUIRES_SPECIAL
public static final int PASSWORD_UNDER_MIN_UNIQUE
public static final int PASSWORD_EXPIRED
public static final int CONTENT_PROVIDER_NOT_INSTALLED
public DataVaultException(java.lang.String sMessage, int iErrorCode, java.lang.Throwable cause)
sMessage
- Exception messageiErrorCode
- Error code drawn from the constants in this classpublic DataVaultException(java.lang.String sMessage, int iErrorCode)
sMessage
- Exception messageiErrorCode
- Error code drawn from the constants in this classpublic DataVaultException(java.lang.String sMessage, int iErrorCode, DataVault.DVPasswordPolicy dvPasswordPolicy)
sMessage
- Exception messageiErrorCode
- Error code drawn from the constants in this classdvPasswordPolicy
- current datavault password policy which is used during the excpetion if password expired.public int getErrorCode()
public DataVault.DVPasswordPolicy getDvPasswordPolicy()