Exception: Landlock::SyscallError

Inherits:
Error
  • Object
show all
Defined in:
lib/landlock.rb,
ext/landlock/landlock.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(syscall, errno, message = nil) ⇒ SyscallError

Returns a new instance of SyscallError.



13
14
15
16
17
# File 'lib/landlock.rb', line 13

def initialize(syscall, errno, message = nil)
  @syscall = syscall
  @errno = errno
  super(message || "#{syscall} failed: #{errno}")
end

Instance Attribute Details

#errnoObject (readonly)

Returns the value of attribute errno.



11
12
13
# File 'lib/landlock.rb', line 11

def errno
  @errno
end

#syscallObject (readonly)

Returns the value of attribute syscall.



11
12
13
# File 'lib/landlock.rb', line 11

def syscall
  @syscall
end