Exception: BERTRPC::ReadError
- Inherits:
-
BERTRPCError
- Object
- StandardError
- BERTRPCError
- BERTRPC::ReadError
- Defined in:
- lib/bertrpc/errors.rb
Overview
Raised when unexpected EOF is reached on the socket.
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Attributes inherited from BERTRPCError
Instance Method Summary collapse
-
#initialize(host, port) ⇒ ReadError
constructor
A new instance of ReadError.
Constructor Details
#initialize(host, port) ⇒ ReadError
Returns a new instance of ReadError.
50 51 52 53 |
# File 'lib/bertrpc/errors.rb', line 50 def initialize(host, port) @host, @port = host, port super("Unable to read from #{host}:#{port}") end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
49 50 51 |
# File 'lib/bertrpc/errors.rb', line 49 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
49 50 51 |
# File 'lib/bertrpc/errors.rb', line 49 def port @port end |