Exception: OrientDbClient::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- OrientDbClient::ProtocolError
- Defined in:
- lib/orient_db_client/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exception_class ⇒ Object
readonly
Returns the value of attribute exception_class.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session, *exceptions) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(session, *exceptions) ⇒ ProtocolError
Returns a new instance of ProtocolError.
12 13 14 15 16 17 |
# File 'lib/orient_db_client/exceptions.rb', line 12 def initialize(session, *exceptions) @session @exception_class = exceptions[0] && exceptions[0][:exception_class] super exceptions.map { |exp| [ exp[:exception_class], exp[:exception_message] ].reject { |s| s.nil? }.join(': ') }.join("\n") end |
Instance Attribute Details
#exception_class ⇒ Object (readonly)
Returns the value of attribute exception_class.
10 11 12 |
# File 'lib/orient_db_client/exceptions.rb', line 10 def exception_class @exception_class end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
9 10 11 |
# File 'lib/orient_db_client/exceptions.rb', line 9 def session @session end |