Class GeneralScriptException

  • All Implemented Interfaces:
    java.io.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​(java.lang.String msg)
        Deprecated.
      • GeneralScriptException

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

        public GeneralScriptException​(StreamInput in)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException