EezoException
eezo's HTTP failure channel.
The set is sealed and lives in modules/http rather than in core, which is what makes it impossible for a domain module to throw one: db depends on core and never on http. The module boundary enforces what a convention would only ask for.
No case carries a status, and none carries headers. Sealing makes the mapping at the boundary an exhaustive match with no fallback, the Allow header lives in the 405 arm and the challenge in the 401 arm, and an open base carrying a status is exactly the mechanism by which an HTTP status reaches code that should not know one. See docs/adr/0001-http-errors-live-in-http-and-carry-no-status.md.
Four documents enumerate the set and move with it, so a widening of the set is a change to all of them: docs/adr/0001, docs/adr/0006, docs/explanation/failures.md and docs/how-to/handle-failures.md.
Attributes
- Source
- Errors.scala
- Graph
-
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
class BadRequestclass Forbiddenclass InternalServerErrorclass MethodNotAllowedclass NotFoundclass NotImplementedclass PayloadTooLargeclass Unauthorizedclass UnprocessableContent