Trait

endpoints.algebra

BuiltInErrors

Related Doc: package algebra

Permalink

trait BuiltInErrors extends Errors

Uses endpoints built-in error types:

- Invalid for client errors,

- and Throwable for server error.

Both types of errors are serialized into a JSON array containing string error values.

Self Type
BuiltInErrors with EndpointsWithCustomErrors
Source
BuiltInErrors.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BuiltInErrors
  2. Errors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ClientErrors = Invalid

    Permalink

    Errors in a request built by a client

    Errors in a request built by a client

    Definition Classes
    BuiltInErrorsErrors
  2. type ServerError = Throwable

    Permalink

    Error raised by the business logic of a server

    Error raised by the business logic of a server

    Definition Classes
    BuiltInErrorsErrors

Abstract Value Members

  1. abstract def clientErrorsResponseEntity: (BuiltInErrors.this)#ResponseEntity[Invalid]

    Permalink

    Response entity format for Invalid values

    Response entity format for Invalid values

    Definition Classes
    BuiltInErrorsErrors
  2. abstract def serverErrorResponseEntity: (BuiltInErrors.this)#ResponseEntity[Throwable]

    Permalink

    Response entity format for Throwable values

    Response entity format for Throwable values

    Definition Classes
    BuiltInErrorsErrors

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val clientErrorsResponse: (BuiltInErrors.this)#Response[(BuiltInErrors.this)#ClientErrors]

    Permalink

    Response used by the endpoints library when decoding a request fails.

    Response used by the endpoints library when decoding a request fails.

    The provided implementation forwards to badRequest.

    Definition Classes
    Errors
  6. final def clientErrorsToInvalid(clientErrors: (BuiltInErrors.this)#ClientErrors): Invalid

    Permalink
    Definition Classes
    BuiltInErrorsErrors
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def invalidToClientErrors(invalid: Invalid): (BuiltInErrors.this)#ClientErrors

    Permalink
    Definition Classes
    BuiltInErrorsErrors
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. lazy val serverErrorResponse: (BuiltInErrors.this)#Response[(BuiltInErrors.this)#ServerError]

    Permalink

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

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

    The provided implementation forwards to internalServerError

    Definition Classes
    Errors
  19. final def serverErrorToThrowable(serverError: (BuiltInErrors.this)#ServerError): Throwable

    Permalink
    Definition Classes
    BuiltInErrorsErrors
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. final def throwableToServerError(throwable: Throwable): (BuiltInErrors.this)#ServerError

    Permalink
    Definition Classes
    BuiltInErrorsErrors
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Errors

Inherited from AnyRef

Inherited from Any

Ungrouped