Package rea
Class ReaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
rea.ReaException
- All Implemented Interfaces:
Serializable
An exception in the game.
It is thrown when something goes wrong in the game.
It is a checked exception, so it must be caught or declared.
It is a subclass of
Exception
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ReaException with no message.ReaException
(String message) Create a new ReaException with a message.ReaException
(String message, Throwable cause) Create a new ReaException with a message and a cause.ReaException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Create a new ReaException with a message, a cause, and flags for suppression and stack trace.ReaException
(Throwable cause) Create a new ReaException with 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 Details
-
ReaException
public ReaException()Create a new ReaException with no message. -
ReaException
Create a new ReaException with a message.- Parameters:
message
- the message
-
ReaException
Create a new ReaException with a message and a cause.- Parameters:
message
- the messagecause
- the cause
-
ReaException
Create a new ReaException with a cause.- Parameters:
cause
- the cause
-
ReaException
public ReaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Create a new ReaException with a message, a cause, and flags for suppression and stack trace.- Parameters:
message
- the messagecause
- the causeenableSuppression
- wheather or not suppression is enabled or disabledwritableStackTrace
- whe ther or not the stack trace should be writable
-