java.security.cert
Class CertPathBuilderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by java.security.cert.CertPathBuilderException
All Implemented Interfaces:
Serializable

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, Serialized Form

Constructor Summary
CertPathBuilderException()
          Create an exception without a message.
CertPathBuilderException(String msg)
          Create an exception with a message.
CertPathBuilderException(String msg, Throwable cause)
          Create an exception with a cause and a message.
CertPathBuilderException(Throwable cause)
          Create an exception with a cause.
 
Method Summary
 Throwable getCause()
          Get the cause, null if unknown.
 String getMessage()
          Get the detail message.
 void printStackTrace()
          Print the stack trace to System.err.
 void printStackTrace(PrintStream stream)
          Print the stack trace to a stream.
 void printStackTrace(PrintWriter stream)
          Print the stack trace to a stream.
 String toString()
          Convert this to a string, including its cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getMessage

public String getMessage()
Get the detail message.

Overrides:
getMessage in class Throwable
Returns:
the detail message

getCause

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

Overrides:
getCause in class Throwable
Returns:
the cause

toString

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

Overrides:
toString in class Throwable
Returns:
the string conversion
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)

printStackTrace

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

Overrides:
printStackTrace in class Throwable

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
stream - the stream

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
stream - the stream