Method: Ftpd::FtpServerError#initialize
- Defined in:
- lib/ftpd/exceptions.rb
#initialize(message, code) ⇒ FtpServerError
Returns a new instance of FtpServerError.
16 17 18 19 20 21 |
# File 'lib/ftpd/exceptions.rb', line 16 def initialize(, code) @code = code raise ArgumentError, "Invalid response code" unless valid_response_code? super() end |