WithErrorMode

ox.OxApp.WithErrorMode
trait WithErrorMode[E, F[_]](em: ErrorMode[E, F]) extends OxApp

WithErrorMode variant of OxApp allows to specify what kind of error handling for the main function should be used. Base trait for integrations.

Type parameters

E

Error type

F

wrapper type for given ErrorMode

Attributes

Graph
Supertypes
trait OxApp
class Object
trait Matchable
class Any
Known subtypes
class WithEitherErrors[E]

Members list

Value members

Abstract methods

def handleError(e: E): ExitCode

Allows implementor of this trait to translate an error that app finished with into a concrete ExitCode.

Allows implementor of this trait to translate an error that app finished with into a concrete ExitCode.

Attributes

def runWithErrors(args: Vector[String])(using Ox): F[ExitCode]

This template method is to be implemented by abstract classes that add integration for particular error handling data structure of type F[_].

This template method is to be implemented by abstract classes that add integration for particular error handling data structure of type F[_].

Attributes

Concrete methods

final override def run(args: Vector[String])(using Ox): ExitCode

Attributes

Definition Classes

Inherited methods

final def main(args: Array[String]): Unit

Attributes

Inherited from:
OxApp