Package groovy.util

# Class ScriptException

java.lang.Object
java.lang.Throwable
java.lang.Exception
groovy.util.ScriptException

All Implemented Interfaces:
  `Serializable`

public class ScriptException extends Exception
Indicates an error while processing a script.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ScriptException()`
  Creates a script exception with no detail message.
  `ScriptException(String message)`
  Creates a script exception with the supplied detail message.
  `ScriptException(String message, Throwable cause)`
  Creates a script exception with the supplied detail message and cause.
  `ScriptException(Throwable cause)`
  Creates a script exception with the supplied cause.

- ## Method Summary

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ScriptException

    public ScriptException()
    Creates a script exception with no detail message.

  - ### ScriptException

    public ScriptException(String message)
    Creates a script exception with the supplied detail message.
    Parameters:
      `message` - the detail message

  - ### ScriptException

    public ScriptException(String message, Throwable cause)
    Creates a script exception with the supplied detail message and cause.
    Parameters:
      `message` - the detail message
      `cause` - the underlying cause

  - ### ScriptException

    public ScriptException(Throwable cause)
    Creates a script exception with the supplied cause.
    Parameters:
      `cause` - the underlying cause