class TFTP::Error
An exception raised by TFTP
code.
Constants
- MESSAGES
Public Class Methods
message(key, *args)
click to toggle source
# File lib/tftp/error.rb, line 11 def self.message(key, *args) string = MESSAGES[key] or raise "[TFTP BUG] No error messages for #{key}" (args.empty? ? string : string % args).rstrip end
new(message = nil)
click to toggle source
@param message [String] The error message
Calls superclass method
# File lib/tftp/error.rb, line 17 def initialize(message = nil) super(message) end