Class Unmarshaller.UnsupportedContentTypeException

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

public static final class Unmarshaller.UnsupportedContentTypeException extends Unmarshaller.UnsupportedContentTypeException 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 pekko.http.scaladsl.unmarshalling.Unmarshaller instead.
See Also:
  • Constructor Details

    • UnsupportedContentTypeException

      public UnsupportedContentTypeException(Set<ContentTypeRange> _supported, Optional<ContentType> _actualContentType)
    • UnsupportedContentTypeException

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

    • supported

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

      public scala.Option<ContentType> actualContentType()
    • 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 Unmarshaller.UnsupportedContentTypeException
    • productArity

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

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