Class RatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.rat.api.RatException
- All Implemented Interfaces:
Serializable
This exception is used to indicate error conditions during RAT runs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RatException(String message) Constructor with message only.RatException(String message, Throwable cause) Constructor with message and cause.RatException(Throwable cause) Constructor with cause only. -
Method Summary
Modifier and TypeMethodDescriptionstatic RatExceptionmakeRatException(Exception exception) Creates aRatExceptionout of any other type of exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RatException
public RatException()Constructor. -
RatException
-
RatException
Constructor with message only.- Parameters:
message- an error message to give more context.
-
RatException
-
-
Method Details
-
makeRatException
Creates aRatExceptionout of any other type of exception. If the exception is already aRatException, just return it.- Parameters:
exception- the exception to convert.- Returns:
- a
RatException.
-