A exception class for reporting a non-success result of an operation.
Methods
Attributes
| [R] | code | The error code (numeric) |
| [R] | description | The description of the error |
| [R] | language | The language in which the description is being reported (usually the empty string) |
Public Class methods
Create a new status exception that reports the given code and description.
[ show source ]
# File lib/net/sftp/operations/errors.rb, line 61
61: def initialize( code, description, language )
62: @code = code
63: @description = description
64: @language = language
65: end
Public Instance methods
Override the default message format, to include the code and description.
[ show source ]
# File lib/net/sftp/operations/errors.rb, line 69
69: def message
70: m = super
71: m << " (#{code}, #{description.inspect})"
72: end