Package org.openpatch.scratch
Class ScratchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openpatch.scratch.ScratchException
- All Implemented Interfaces:
Serializable
Thrown when a program cannot go on, for example because a costume or a sound
could not be loaded.
A full explanation of what went wrong, and usually a suggestion for how to fix it, is printed before this is thrown, so the message here is deliberately short.
You are not expected to catch it. It exists so that a failure stops your program rather than the whole development environment, which is what happened when the library used to end the process itself.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScratchException
Creates the exception.- Parameters:
message- a short summary; the details are already on the console
-