case class DefaultDecodeFailureHandler(respondWithStatusCode: (DecodeFailureContext) ⇒ Option[StatusCode], response: (StatusCode, String) ⇒ DecodeFailureHandling, failureMessage: (DecodeFailureContext) ⇒ String) extends DecodeFailureHandler with Product with Serializable
Create a decode failure handler, which:
- decides whether the given decode failure should lead to a response (and if so, with which status code),
or return a DecodeFailureHandling.noMatch, using respondWithStatusCode
- creates decode failure messages using failureMessage
- creates the response using response
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultDecodeFailureHandler
- Serializable
- Serializable
- Product
- Equals
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DefaultDecodeFailureHandler(respondWithStatusCode: (DecodeFailureContext) ⇒ Option[StatusCode], response: (StatusCode, String) ⇒ DecodeFailureHandling, failureMessage: (DecodeFailureContext) ⇒ String)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[A](g: (DecodeFailureHandling) ⇒ A): (DecodeFailureContext) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(ctx: DecodeFailureContext): DecodeFailureHandling
- Definition Classes
- DefaultDecodeFailureHandler → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ DecodeFailureContext): (A) ⇒ DecodeFailureHandling
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val failureMessage: (DecodeFailureContext) ⇒ String
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val respondWithStatusCode: (DecodeFailureContext) ⇒ Option[StatusCode]
- val response: (StatusCode, String) ⇒ DecodeFailureHandling
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()