com.puppycrawl.tools.checkstyle.api
Class CheckstyleException
Exception
com.puppycrawl.tools.checkstyle.api.CheckstyleException
public class CheckstyleException
extends Exception
Represents an error condition within Checkstyle.
Version:
- Oliver Burn
CheckstyleException(String aMessage) - Creates a new
CheckstyleException instance.
|
CheckstyleException(String aMessage, Throwable aCause) - Creates a new
CheckstyleException instance
that was caused by another exception.
|
Throwable | getCause()
|
Throwable | initCause(Throwable aCause) - Initializes the cause of this exception.
|
CheckstyleException
public CheckstyleException(String aMessage)
Creates a new CheckstyleException
instance.
aMessage
- a String
value
CheckstyleException
public CheckstyleException(String aMessage,
Throwable aCause)
Creates a new CheckstyleException
instance
that was caused by another exception.
aMessage
- a message that explains this exceptionaCause
- the Exception that is wrapped by this exception
getCause
public Throwable getCause()
- the cause of this exception, might be
null
.
initCause
public Throwable initCause(Throwable aCause)
Initializes the cause of this exception.
In JDK 1.4 (and later) the cause is printed as part of
the exception stacktrace.
aCause
- the exception that caused this
CheckstyleException to be thrown
- a reference to this CheckstyleException instance