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.SerializableSignals 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 theforContentTypesmodifier on a baseUnmarshallerinstead.- 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()booleancanEqual(java.lang.Object that)Unmarshaller.UnsupportedContentTypeExceptioncopy(scala.collection.immutable.Set<ContentTypeRange> supported)Deprecated.for binary compatibility.Unmarshaller.UnsupportedContentTypeExceptioncopy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)Deprecated.for binary compatibility.booleanequals(java.lang.Object that)intproductArity()java.lang.ObjectproductElement(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:
canEqualin interfacescala.Equals
-
equals
public boolean equals(java.lang.Object that)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElementin interfacescala.Product
-
-