Settings

ox.OxApp.Settings
See theSettings companion object
case class Settings(interruptedExitCode: ExitCode, handleInterruptedException: InterruptedException => Unit, handleException: Throwable => Unit)

Settings for an OxApp. Defaults are defined in Settings.Default.

Value parameters

handleException

Callback used for exceptions that are thrown by the application's body, causing the application to terminate with a failed ExitCode. By default the exception's stack trace is printed to stderr (unless a default uncaught exception handler is set).

handleInterruptedException

Callback used for the interrupted exception that might be thrown by the application's body, w.g. when the the application is interrupted using SIGINT/SIGTERM. By default, the handler looks for any exceptions that are not instances of InterruptedException (as this is considered part of "normal" shutdown process), and prints their stack trace to stderr (unless a default uncaught exception handler is set).

interruptedExitCode

This value is returned to the operating system as the exit code when the app receives SIGINT/SIGTERM and shuts itself down gracefully. By default, the value is ExitCode.Success. JVM itself returns code 130 when it receives SIGINT.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product