class NIS::YPError
Runtime error for yp functions.
Can be raised from each function when something goes wrong (when the return code isn’t 0). Includes the error code and a readable message. The code can be checked against the YPERR constants (e.g. NIS::YPERR_BADARGS).
Attributes
code[R]
Public Class Methods
new(code, message)
click to toggle source
Calls superclass method
# File lib/nis-ffi.rb, line 32 def initialize(code, message) super(message) @code = code end