Class Unmarshaller.UnsupportedContentTypeException

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Enclosing interface:
    Unmarshaller<A,​B>

    public static final class Unmarshaller.UnsupportedContentTypeException
    extends java.lang.RuntimeException
    implements scala.Product, java.io.Serializable
    Signals that unmarshalling failed because the entity content-type did not match one of the supported ranges. This error cannot be thrown by custom code, you need to use the forContentTypes modifier on a base Unmarshaller instead.
    See Also:
    Serialized Form
    • Constructor Detail

      • UnsupportedContentTypeException

        public UnsupportedContentTypeException​(scala.collection.immutable.Set<ContentTypeRange> supported,
                                               scala.Option<ContentType> actualContentType)
      • UnsupportedContentTypeException

        public UnsupportedContentTypeException​(scala.collection.immutable.Set<ContentTypeRange> supported)
        Deprecated.
        for binary compatibility. Since 10.1.9.
    • Method Detail

      • supported

        public scala.collection.immutable.Set<ContentTypeRange> supported()
      • actualContentType

        public scala.Option<ContentType> actualContentType()
      • canEqual

        public boolean canEqual​(java.lang.Object that)
        Specified by:
        canEqual in interface scala.Equals
      • equals

        public boolean equals​(java.lang.Object that)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int n)
        Specified by:
        productElement in interface scala.Product