Class GeneralScriptException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.script.GeneralScriptException
All Implemented Interfaces:
java.io.Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.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 Details

    • 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