class

X::Process::Reason::Context

Inherits Reference / Object

Constructors

custom(message : String) : Context
Source
exception(exception : Value::Context) : Context
Source
invalid_process
Source
kill
Source
new(type : Type, message : String = "", exception : Value::Context | Nil = nil)
Source
new(type : Type, message : String, stacktrace : Array(String))
Source
normal

Factory methods for common exit reasons

Source
shutdown(reason : String = "shutdown") : Context
Source
timeout
Source

Instance methods

exception
Source
inspect

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.

Source
message
Source
normal?

Check if this is a "normal" exit (shouldn't trigger restarts)

Source
propagates?

Check if this exit should propagate to linked processes

Source
stacktrace
Source
timestamp
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_value

Convert to a Value for message passing

Source
trappable?

Check if this exit can be trapped

Source
type
Source