class Net::SSH::ChannelOpenFailed

a “channel open failed” message.
raise this exception in the handler and Net::SSH will translate that into
want to fail in such a way that the server knows it failed, you can
open handler (see Net::SSH::Connection::Session#on_open_channel) and you
This is exception is primarily used internally, but if you have a channel

def initialize(code, reason)

def initialize(code, reason)
  @code, @reason = code, reason
  super "#{reason} (#{code})"
end