Class | Net::SFTP::StatusException |
In: |
lib/net/sftp/errors.rb
|
Parent: | Net::SFTP::Exception |
code | [R] | The error code (numeric) |
description | [R] | The description of the error |
response | [R] | The response object that caused the exception. |
text | [R] | Any incident-specific text given when the exception was raised |
Create a new status exception that reports the given code and description.
# File lib/net/sftp/errors.rb, line 23 23: def initialize(response, text=nil) 24: @response, @text = response, text 25: @code = response.code 26: @description = response.message 27: @description = Response::MAP[@code] if @description.nil? || @description.empty? 28: end