Raxol.Events.TerminalErrorOccurredEvent (Raxol v2.0.1)

View Source

Event emitted when an error occurs in a terminal.

Summary

Types

error_context()

@type error_context() :: %{
  command: String.t() | nil,
  working_directory: String.t(),
  environment: map(),
  process_id: String.t() | nil
}

error_type()

@type error_type() ::
  :command_error
  | :system_error
  | :network_error
  | :permission_error
  | :resource_error

t()

@type t() :: %Raxol.Events.TerminalErrorOccurredEvent{
  context: error_context(),
  error_code: String.t() | integer() | nil,
  error_message: String.t(),
  error_type: error_type(),
  metadata: map(),
  occurred_at: integer(),
  recoverable: boolean(),
  stack_trace: String.t() | nil,
  terminal_id: String.t(),
  user_id: String.t()
}

Functions

validate(event)