Package de.rwth.swc.coffee4j.algorithmic
Class Coffee4JException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.rwth.swc.coffee4j.algorithmic.Coffee4JException
-
- All Implemented Interfaces:
Serializable
public class Coffee4JException extends RuntimeException
ARuntimeException
that signalizes that something went wrong in the coffee4j project, either caused by the user or the developer- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Coffee4JException(String message)
Creates a newCoffee4JException
with the supplied messageCoffee4JException(String format, Object... args)
Creates a newCoffee4JException
with the supplied format string and objectsCoffee4JException(String message, Throwable cause)
Creates a newCoffee4JException
with the supplied message and causeCoffee4JException(Throwable cause, String format, Object... args)
Creates a newCoffee4JException
with the supplied format string and objects, and a cause
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
Coffee4JException
public Coffee4JException(String message)
Creates a newCoffee4JException
with the supplied message- Parameters:
message
- the message of the exception
-
Coffee4JException
public Coffee4JException(String message, Throwable cause)
Creates a newCoffee4JException
with the supplied message and cause- Parameters:
message
- the message of the exceptioncause
- the cause of the exception
-
Coffee4JException
public Coffee4JException(String format, Object... args)
Creates a newCoffee4JException
with the supplied format string and objects- Parameters:
format
- the string to formatargs
- the parameters for the string formatting- See Also:
String.format(String, Object...)
-
Coffee4JException
public Coffee4JException(Throwable cause, String format, Object... args)
Creates a newCoffee4JException
with the supplied format string and objects, and a cause- Parameters:
format
- the string to formatargs
- the parameters for the string formattingcause
- the cause of the exception- See Also:
String.format(String, Object...)
-
-