class Systemd::JournalError
This execption is raised whenever a sd_journal_* call returns an error.
Attributes
code[R]
Returns the (positive) error number.
Public Class Methods
new(code)
click to toggle source
Instantiate a new JournalError
based on the specified return code. `message` will be filled in by calling `strerror()` with the provided return code.
Calls superclass method
# File lib/systemd/journal_error.rb, line 12 def initialize(code) @code = -code super(LIBC.strerror(@code)) end