trait
Errors extends AnyRef
Type Members
-
abstract
type
ClientErrors
-
abstract
type
ServerError
Abstract Value Members
-
abstract
def
clientErrorsResponseEntity: (Errors.this)#ResponseEntity[(Errors.this)#ClientErrors]
-
abstract
def
clientErrorsToInvalid(clientErrors: (Errors.this)#ClientErrors): Invalid
-
abstract
def
invalidToClientErrors(invalid: Invalid): (Errors.this)#ClientErrors
-
abstract
def
serverErrorResponseEntity: (Errors.this)#ResponseEntity[(Errors.this)#ServerError]
-
abstract
def
serverErrorToThrowable(serverError: (Errors.this)#ServerError): Throwable
-
abstract
def
throwableToServerError(throwable: Throwable): (Errors.this)#ServerError
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
lazy val
clientErrorsResponse: (Errors.this)#Response[(Errors.this)#ClientErrors]
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
lazy val
serverErrorResponse: (Errors.this)#Response[(Errors.this)#ServerError]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Defines the error types used to model client and server errors.
The
ClientErrors
type is used by endpoints to model errors coming from the client (missing query parameter, invalid entity, etc.).The
ServerError
type is used by endpoints to model errors coming from the server business logic.The
badRequest
andinternalServerError
operations defined in Responses define responses carrying entities of typeClientErrors
andServerError
, respectively.Interpreters are expected to use the
clientErrorsResponse
andserverErrorResponse
operations defined here to handle client and server errors, respectively.BuiltInErrors