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:
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 theforContentTypes
modifier on a baseUnmarshaller
instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedContentTypeException(scala.collection.immutable.Set<ContentTypeRange> supported)
Deprecated.for binary compatibility.UnsupportedContentTypeException(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> actualContentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description scala.Option<ContentType>
actualContentType()
boolean
canEqual(java.lang.Object that)
Unmarshaller.UnsupportedContentTypeException
copy(scala.collection.immutable.Set<ContentTypeRange> supported)
Deprecated.for binary compatibility.Unmarshaller.UnsupportedContentTypeException
copy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
Deprecated.for binary compatibility.boolean
equals(java.lang.Object that)
int
productArity()
java.lang.Object
productElement(int n)
scala.collection.immutable.Set<ContentTypeRange>
supported()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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()
-
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(java.lang.Object that)
- Specified by:
canEqual
in interfacescala.Equals
-
equals
public boolean equals(java.lang.Object that)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElement
in interfacescala.Product
-
-