Class Unmarshaller.UnsupportedContentTypeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
akka.http.scaladsl.unmarshalling.Unmarshaller.UnsupportedContentTypeException
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product
Enclosing interface:
Unmarshaller<A,B>

public static final class Unmarshaller.UnsupportedContentTypeException extends RuntimeException implements scala.Product, 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:
  • Constructor Details

    • 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 Details

    • supported

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

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

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

      public Unmarshaller.UnsupportedContentTypeException copy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
      Deprecated.
      for binary compatibility. Since 10.1.9.
    • canEqual

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

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

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

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