Class: EventMachine::Ssh::ChannelOpenFailed

Inherits:
Net::SSH::ChannelOpenFailed
  • Object
show all
Includes:
Error
Defined in:
lib/em-ssh.rb

Overview

class::Disconnect < SshError

Defined Under Namespace

Classes: AdministrativelyProhibited, ConnectFailed, ResourceShortage, UnknownChannelType

Constant Summary collapse

CODES =
[
  ChannelOpenFailed,
  AdministrativelyProhibited,
  ConnectFailed,
  UnknownChannelType,
  ResourceShortage
]

Class Method Summary collapse

Class Method Details

.from_code(code, desc) ⇒ Object



87
88
89
# File 'lib/em-ssh.rb', line 87

def from_code(code, desc)
  (CODES[code] || ChannelOpenFailed).new(code, desc)
end