BuiltInErrors

endpoints4s.play.server.BuiltInErrors
trait BuiltInErrors extends BuiltInErrors

Attributes

Graph
Supertypes
trait BuiltInErrors
trait Errors
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Type members

Inherited types

type ClientErrors = Invalid

Errors in a request built by a client

Errors in a request built by a client

Attributes

Inherited from:
BuiltInErrors
type ServerError = Throwable

Error raised by the business logic of a server

Error raised by the business logic of a server

Attributes

Inherited from:
BuiltInErrors

Value members

Concrete methods

def clientErrorsResponseEntity: () => Invalid

Response entity format for Invalid values

Response entity format for Invalid values

Attributes

def serverErrorResponseEntity: () => Throwable

Response entity format for Throwable values

Response entity format for Throwable values

Attributes

Inherited methods

final def clientErrorsToInvalid(clientErrors: ClientErrors): Invalid

Convert the ClientErrors type into the endpoints4s internal client error type

Convert the ClientErrors type into the endpoints4s internal client error type

Attributes

Inherited from:
BuiltInErrors
final def invalidToClientErrors(invalid: Invalid): ClientErrors

Convert the endpoints4s internal client error type into the ClientErrors type

Convert the endpoints4s internal client error type into the ClientErrors type

Attributes

Inherited from:
BuiltInErrors
final def serverErrorToThrowable(serverError: ServerError): Throwable

Convert the ServerError type into the endpoints4s internal server error type

Convert the ServerError type into the endpoints4s internal server error type

Attributes

Inherited from:
BuiltInErrors
final def throwableToServerError(throwable: Throwable): ServerError

Convert the endpoints4s internal server error type into the ServerError type

Convert the endpoints4s internal server error type into the ServerError type

Attributes

Inherited from:
BuiltInErrors

Inherited fields

lazy val clientErrorsResponse: <none>[ClientErrors]

Response used by endpoints4s when decoding a request fails.

Response used by endpoints4s when decoding a request fails.

The provided implementation forwards to badRequest.

Attributes

Inherited from:
Errors
lazy val serverErrorResponse: <none>[ServerError]

Response used by endpoints4s when the business logic of an endpoint fails.

Response used by endpoints4s when the business logic of an endpoint fails.

The provided implementation forwards to internalServerError

Attributes

Inherited from:
Errors