--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Registers a callback to be invoked when the server was unable to open the requested channel. The channel itself will be passed to the block, along with the integer &quot;reason code&quot; for the failure, and a textual description of the failure from the server.
- !ruby/struct:SM::Flow::VERB 
  body: "  channel = session.open_channel do |ch|\n    # ..\n  end\n\n  channel.on_open_failed { |ch, code, desc| ... }\n"
full_name: Net::SSH::Connection::Channel#on_open_failed
is_singleton: false
name: on_open_failed
params: (&block)
visibility: public
