Class PaintException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
dev.despical.pixelpainter.core.PaintException
- All Implemented Interfaces:
Serializable
Signals a failure the sender can correct, carrying its typed
PaintError.
Extends IllegalArgumentException so existing validation callers keep
working, while command handling reads error() instead of parsing text.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPaintException(PaintError error) Creates an exception for a typed failure.PaintException(PaintError error, Throwable cause) Creates an exception that keeps the underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PaintException
Creates an exception for a typed failure.- Parameters:
error- failure kind
-
PaintException
Creates an exception that keeps the underlying cause.- Parameters:
error- failure kindcause- original failure
-
-
Method Details
-
error
-