EezoException

io.eezo.http.EezoException
sealed abstract class EezoException(message: String) extends RuntimeException

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 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.

Attributes

Source
Errors.scala
Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable

Attributes

Inherited from:
Throwable
def printStackTrace(): Unit

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable