Methods

Class Index [+]

Quicksearch

Net::SSH::ChannelOpenFailed

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.

Attributes

code[R]
reason[R]

Public Class Methods

new(code, reason) click to toggle source
    # File lib/net/ssh/errors.rb, line 32
32:     def initialize(code, reason)
33:       @code, @reason = code, reason
34:       super "#{reason} (#{code})"
35:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.