Class UnknownNamedObjectException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.common.ParsingException
org.elasticsearch.common.xcontent.UnknownNamedObjectException
All Implemented Interfaces:
java.io.Serializable, Writeable, ToXContent, ToXContentFragment

public class UnknownNamedObjectException
extends ParsingException
Thrown when NamedXContentRegistry.parseNamedObject(Class, String, XContentParser, Object) is called with an unregistered name. When this bubbles up to the rest layer it is converted into a response with 400 BAD REQUEST status.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ParsingException
      Throws:
      java.io.IOException
    • getCategoryClass

      public java.lang.String getCategoryClass()
      Category class that was missing a parser. This is a String instead of a class because the class might not be on the classpath of all nodes or it might be exclusive to a plugin or something.
    • getName

      public java.lang.String getName()
      Name of the missing parser.