public class MSException
extends java.lang.Exception
Constructor and Description |
---|
MSException()
Constructs a new exception with
null as its detail message. |
MSException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
MSException(java.lang.String message,
int description) |
MSException(java.lang.String message,
java.lang.Throwable error)
Constructs a new exception with the specified detail message and cause.
|
MSException(java.lang.Throwable error)
Constructs a new exception with the specified cause and a detail message of
(cause==null ? null : cause.toString()) (which typically contains
the class and detail message of cause).
|
Modifier and Type | Method and Description |
---|---|
int |
getDescription() |
boolean |
isBadKeyset() |
boolean |
isCanceled() |
boolean |
isNoKey() |
boolean |
isPfxBadAsn1() |
boolean |
isPfxInvalidPassword() |
boolean |
isWantGraphic() |
boolean |
isWrongPassword() |
static void |
procCode(int code)
Convert "C" Error codes to "Java" exceptions.
|
public static final int ERROR_INVALID_PARAMETER
public static final int ERROR_INVALID_HANDLE
public static final int ERROR_BUSY
public static final int ERROR_NOT_ENOUGH_MEMORY
public static final int ERROR_CALL_NOT_IMPLEMENTED
public static final int ERROR_MORE_DATA
public static final int ERROR_NO_MORE_ITEMS
public static final int ERROR_NO_MEDIA_IN_DRIVE
public static final int ERROR_NOT_ALL_ASSIGNED
public static final int NTE_BAD_ALGID
public static final int NTE_BAD_FLAGS
public static final int NTE_BAD_KEY
public static final int NTE_BAD_KEYSET
public static final int NTE_BAD_KEYSET_PARAM
public static final int NTE_BAD_KEY_STATE
public static final int NTE_NO_MEMORY
public static final int NTE_BAD_HASH
public static final int NTE_BAD_TYPE
public static final int NTE_BAD_UID
public static final int NTE_FAIL
public static final int NTE_BAD_SIGNATURE
public static final int NTE_BAD_DATA
public static final int NTE_NO_KEY
public static final int NTE_EXISTS
public static final int NTE_KEYSET_ENTRY_BAD
public static final int NTE_KEYSET_NOT_DEF
public static final int NTE_TOKEN_KEYSET_STORAGE_FULL
public static final int NTE_SILENT_CONTEXT
public static final int NTE_PERM
public static final int NTE_BAD_HASH_STATE
public static final int NTE_BAD_VER
public static final int NTE_BAD_LEN
public static final int NTE_DOUBLE_ENCRYPT
public static final int NTE_BAD_PUBLIC_KEY
public static final int NTE_FIXEDPARAMETER
public static final int SCARD_W_WRONG_CHV
public static final int SCARD_W_REMOVED_CARD
public static final int SCARD_W_CANCELLED_BY_USER
public static final int SCARD_E_INVALID_CHV
public static final int SCARD_W_CHV_BLOCKED
public static final int SCARD_E_NO_SUCH_CERTIFICATE
public static final int ERROR_HSM_CHANNEL_CLOSED
public static final int WSA_INVALID_HANDLE
public static final int WSA_ECONNREFUSED
public static final int RPC_S_PROTOCOL_ERROR
public static final int RPC_S_SERVER_TOO_BUSY
public static final int CRYPT_E_BAD_ENCODE
public static final int CRYPT_E_ASN1_ERROR
public static final int ERROR_INVALID_PASSWORD
public MSException()
null
as its detail message. The
cause is not initialized, and may subsequently be initialized by a call to
Throwable.initCause(java.lang.Throwable)
.public MSException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.public MSException(java.lang.String message, java.lang.Throwable error)
Note that the detail message associated with cause
is
not automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).error
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)public MSException(java.lang.String message, int description)
public MSException(java.lang.Throwable error)
error
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null value is permitted, and indicates
that the cause is nonexistent or unknown.)public static void procCode(int code) throws MSException
code
- errorMSException
public int getDescription()
public boolean isWantGraphic()
public boolean isWrongPassword()
public boolean isBadKeyset()
public boolean isCanceled()
public boolean isNoKey()
public boolean isPfxBadAsn1()
public boolean isPfxInvalidPassword()