java.security.cert

Class CertStoreException

public class CertStoreException extends GeneralSecurityException

Indicates a problem while retrieving certificates and CRLs from CertStore, wrapping the lower exception. This class is not thread-safe.

Since: 1.4

See Also: CertStore

UNKNOWN: updated to 1.4

Constructor Summary
CertStoreException()
Create an exception without a message.
CertStoreException(String msg)
Create an exception with a message.
CertStoreException(Throwable cause)
Create an exception with a cause.
CertStoreException(String msg, Throwable cause)
Create an exception with a cause and a message.
Method Summary
ThrowablegetCause()
Get the cause, null if unknown.
StringgetMessage()
Get the detail message.
voidprintStackTrace()
Print the stack trace to System.err.
voidprintStackTrace(PrintStream stream)
Print the stack trace to a stream.
voidprintStackTrace(PrintWriter stream)
Print the stack trace to a stream.
StringtoString()
Convert this to a string, including its cause.

Constructor Detail

CertStoreException

public CertStoreException()
Create an exception without a message. The cause may be initialized.

CertStoreException

public CertStoreException(String msg)
Create an exception with a message. The cause may be initialized.

Parameters: msg a message to display with exception

CertStoreException

public CertStoreException(Throwable cause)
Create an exception with a cause. The message will be cause == null ? null : cause.toString().

Parameters: cause the cause

CertStoreException

public CertStoreException(String msg, Throwable cause)
Create an exception with a cause and a message.

Parameters: msg the message cause the cause

Method Detail

getCause

public Throwable getCause()
Get the cause, null if unknown.

Returns: the cause

getMessage

public String getMessage()
Get the detail message.

Returns: the detail message

printStackTrace

public void printStackTrace()
Print the stack trace to System.err.

printStackTrace

public void printStackTrace(PrintStream stream)
Print the stack trace to a stream.

Parameters: stream the stream

printStackTrace

public void printStackTrace(PrintWriter stream)
Print the stack trace to a stream.

Parameters: stream the stream

toString

public String toString()
Convert this to a string, including its cause.

Returns: the string conversion