Systemd.Error exception (systemd v0.1.0-pre.0)

Copy Markdown View Source

Structured error returned by systemd and D-Bus operations.

Summary

Functions

Returns true when the error is a systemd/D-Bus permission or polkit denial.

Types

category()

@type category() ::
  :permission | :not_found | :timeout | :invalid | :unsupported | :unknown

source()

@type source() :: :dbus | :connection | :protocol | :validation

t()

@type t() :: %Systemd.Error{
  __exception__: term(),
  body: [term()],
  category: category(),
  dbus_name: String.t() | nil,
  details: term(),
  message: String.t(),
  reason: atom(),
  source: source()
}

Functions

permission?(error)

@spec permission?(t()) :: boolean()

Returns true when the error is a systemd/D-Bus permission or polkit denial.