Class: EventMachine::Ssh::ChannelOpenFailed
- Inherits:
-
Net::SSH::ChannelOpenFailed
- Object
- Net::SSH::ChannelOpenFailed
- EventMachine::Ssh::ChannelOpenFailed
- Includes:
- Error
- Defined in:
- lib/em-ssh.rb
Overview
class::Disconnect < SshError
Direct Known Subclasses
AdministrativelyProhibited, ConnectFailed, ResourceShortage, UnknownChannelType
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 |