InitResult

sealed interface InitResult

Outcome of io.devconsole.DevConsole.initialize (or the internal provisional auto-init call).

Inheritors

Types

Link copied to clipboard
data class Conflict(val message: String) : InitResult

A different, explicit DevConsoleConfig was already active (from an earlier explicit initialize call, not the provisional auto-init default) and this call's config does not match it. The two configs are not merged and the previously active one keeps running -- message describes the conflict. Does not apply when the previously active config was provisional: an explicit call is always allowed to replace that one, returning Initialized instead.

Link copied to clipboard
data object Disabled : InitResult

This build variant is protected (release, wired to devconsole-noop); the call was a no-op.

Link copied to clipboard

A call with a DevConsoleConfig equivalent to the one already active. No-op: the previously active configuration keeps running unchanged.

Link copied to clipboard
data class Failed(val message: String) : InitResult

Initialization could not complete for a reason other than validation or a conflict.

Link copied to clipboard
data object Initialized : InitResult

Initialization succeeded; capture/storage/state are ready. Nothing else changed.

Link copied to clipboard

The supplied DevConsoleConfig failed validation; errors lists every problem found.