Class Unmarshaller.UnsupportedContentTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.pekko.http.javadsl.unmarshalling.Unmarshaller.UnsupportedContentTypeException
org.apache.pekko.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 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 Summary
ConstructorsConstructorDescriptionUnsupportedContentTypeException(Set<ContentTypeRange> _supported, Optional<ContentType> _actualContentType) UnsupportedContentTypeException(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> actualContentType) -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<ContentType>booleanbooleanintproductElement(int n) scala.collection.immutable.Set<ContentTypeRange>Methods inherited from class org.apache.pekko.http.javadsl.unmarshalling.Unmarshaller.UnsupportedContentTypeException
getActualContentType, getSupported, toScalaMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementName, productElementNames, productIterator, productPrefix
-
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
-
actualContentType
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
equals
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classUnmarshaller.UnsupportedContentTypeException
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-