Package akka.http.scaladsl.unmarshalling
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 Summary
ConstructorDescriptionUnsupportedContentTypeException
(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility.UnsupportedContentTypeException
(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> actualContentType) -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<ContentType>
boolean
copy
(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility.copy
(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) Deprecated.for binary compatibility.boolean
int
productElement
(int n) scala.collection.immutable.Set<ContentTypeRange>
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
UnsupportedContentTypeException
public UnsupportedContentTypeException(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> actualContentType) -
UnsupportedContentTypeException
Deprecated.for binary compatibility. Since 10.1.9.
-
-
Method Details
-
supported
-
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
- Specified by:
canEqual
in interfacescala.Equals
-
equals
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-