Class 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 an IllegalArgumentException. 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 a ValidationRejection instead.
    See Also:
    Serialized Form
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • MalformedRequestContentRejection

        public MalformedRequestContentRejection​(java.lang.String message,
                                                java.lang.Throwable cause)