Exception: Landlock::SyscallError

Inherits:
Error
  • Object
show all
Defined in:
lib/landlock/errors.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.



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

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.



8
9
10
# File 'lib/landlock/errors.rb', line 8

def errno
  @errno
end

#syscallObject (readonly)

Returns the value of attribute syscall.



8
9
10
# File 'lib/landlock/errors.rb', line 8

def syscall
  @syscall
end