Class ScratchException

All Implemented Interfaces:
Serializable

public class ScratchException extends RuntimeException
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 Details

    • ScratchException

      public ScratchException(String message)
      Creates the exception.
      Parameters:
      message - a short summary; the details are already on the console