Exception: Landlock::SyscallError
- Defined in:
- lib/landlock.rb,
ext/landlock/landlock.c
Instance Attribute Summary collapse
-
#errno ⇒ Object
readonly
Returns the value of attribute errno.
-
#syscall ⇒ Object
readonly
Returns the value of attribute syscall.
Instance Method Summary collapse
-
#initialize(syscall, errno, message = nil) ⇒ SyscallError
constructor
A new instance of SyscallError.
Constructor Details
#initialize(syscall, errno, message = nil) ⇒ SyscallError
Returns a new instance of SyscallError.
14 15 16 17 18 |
# File 'lib/landlock.rb', line 14 def initialize(syscall, errno, = nil) @syscall = syscall @errno = errno super( || "#{syscall} failed: #{errno}") end |
Instance Attribute Details
#errno ⇒ Object (readonly)
Returns the value of attribute errno.
12 13 14 |
# File 'lib/landlock.rb', line 12 def errno @errno end |
#syscall ⇒ Object (readonly)
Returns the value of attribute syscall.
12 13 14 |
# File 'lib/landlock.rb', line 12 def syscall @syscall end |