java.security.cert

Class CertPathBuilderException

public class CertPathBuilderException extends GeneralSecurityException

Indicates a problem while using a CertPathBuilder, wrapping the lower exception. This class is not thread-safe.

Since: 1.4

See Also: CertPathBuilder

UNKNOWN: updated to 1.4

Constructor Summary
CertPathBuilderException()
Create an exception without a message.
CertPathBuilderException(String msg)
Create an exception with a message.
CertPathBuilderException(Throwable cause)
Create an exception with a cause.
CertPathBuilderException(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

CertPathBuilderException

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

CertPathBuilderException

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

Parameters: msg a message to display with exception

CertPathBuilderException

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

Parameters: cause the cause

CertPathBuilderException

public CertPathBuilderException(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