Class GeneralScriptException

  • All Implemented Interfaces:
    Serializable, Writeable, ToXContent, ToXContentFragment

    @Deprecated
    public class GeneralScriptException
    extends ElasticsearchException
    Deprecated.
    Use ScriptException for exceptions from the scripting engine, otherwise use a more appropriate exception (e.g. if thrown from various abstractions)
    Simple exception class from a script.

    Use of this exception should generally be avoided, it doesn't provide much context or structure to users trying to debug scripting when things go wrong.

    See Also:
    Serialized Form
    • Constructor Detail

      • GeneralScriptException

        public GeneralScriptException​(String msg)
        Deprecated.
      • GeneralScriptException

        public GeneralScriptException​(String msg,
                                      Throwable cause)
        Deprecated.