| Class | Net::SSH::ChannelOpenFailed |
| In: |
lib/net/ssh/errors.rb
lib/net/ssh/errors.rb |
| Parent: | Exception |
This is exception is primarily used internally, but if you have a channel open handler (see Net::SSH::Connection::Session#on_open_channel) and you want to fail in such a way that the server knows it failed, you can raise this exception in the handler and Net::SSH will translate that into a "channel open failed" message.
| code | [R] | |
| code | [R] | |
| reason | [R] | |
| reason | [R] |
# File lib/net/ssh/errors.rb, line 29
29: def initialize(code, reason)
30: @code, @reason = code, reason
31: super "#{reason} (#{code})"
32: end