Package akka.http.scaladsl.server
Class MalformedRequestContentRejection
- java.lang.Object
-
- akka.http.scaladsl.server.MalformedRequestContentRejection
-
- All Implemented Interfaces:
MalformedRequestContentRejection
,Rejection
,Rejection
,java.io.Serializable
,scala.Equals
,scala.Product
public final class MalformedRequestContentRejection extends java.lang.Object implements MalformedRequestContentRejection, Rejection, scala.Product, java.io.Serializable
Rejection created by unmarshallers. Signals that the request was rejected because unmarshalling failed with an error that wasn't anIllegalArgumentException
. Usually that means that the request content was not of the expected format. Note that semantic issues with the request content (e.g. because some parameter was out of range) will usually trigger aValidationRejection
instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MalformedRequestContentRejection(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static R
apply(T1 v1, T2 v2)
java.lang.Throwable
cause()
java.lang.Throwable
getCause()
java.lang.String
message()
static java.lang.String
toString()
-
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2)
-
toString
public static java.lang.String toString()
-
message
public java.lang.String message()
- Specified by:
message
in interfaceMalformedRequestContentRejection
-
cause
public java.lang.Throwable cause()
-
getCause
public java.lang.Throwable getCause()
- Specified by:
getCause
in interfaceMalformedRequestContentRejection
-
-