Package-level declarations
Types
Link copied to clipboard
interface RouteCall
A call of a service route (me.ahoo.wow.api.annotation.ServiceRoute) as admission let it through: who calls, in which tenant and scope, under which request id, and the commands the handler may send and the queries it may run as that caller. A handler sees no HTTP request, as a decide function sees none: it is tested by calling it with a call of its own.
Link copied to clipboard
class RouteRefusal @JvmOverloads constructor(val code: String, val message: String, val extensions: Map<String, Any?> = emptyMap()) : RuntimeException
A service route's refusal of a call: its code, one of the route's declared errors, a message shown to the caller, and structured extensions, which the problem writes as its members. Its status is the code's in the context's error table, 422 when the table has none.