Companion

Properties

Link copied to clipboard

The modules' describers, then the built-in ones: no application's.

Link copied to clipboard
const val MAX_CAUSES: Int = 3

The causes a reason names at most, after the failure itself.

Link copied to clipboard
const val MAX_LENGTH: Int = 1000

The longest reason, in characters.

Link copied to clipboard

The describers of the modules on the classpath (ServiceLoader, from a module's META-INF/services/me.ahoo.wow.spi.subscription.FailureDescriber), in the order of their class names, as FailureClassification.MODULES are found.

Functions

Link copied to clipboard

Whether failure's message is written for a caller, who reads it anyway: an answer of a service (WowProblemException), a command's rejection (CommandRejectedException), a decide function's (RejectedException), and a handling that ended in one (HandlingRejectedException).

Link copied to clipboard

The modules' describers classLoader finds, as MODULES are found.

Link copied to clipboard
fun of(application: List<FailureDescriber> = emptyList(), own: List<FailureDescriber> = emptyList(), modules: List<FailureDescriber> = MODULES): FailureReasons

The application's describers, then the modules', then the caller's own (the runtime's), then the built-in ones (KernelDescriptions, JacksonDescriptions): the first that describes a failure decides.