Exception: ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- ProtocolError
- Defined in:
- lib/kotoshu/embeddings/protocol.rb
Overview
Protocol error
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#missing_methods ⇒ Object
readonly
Returns the value of attribute missing_methods.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(klass, protocol, missing_methods) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(klass, protocol, missing_methods) ⇒ ProtocolError
Returns a new instance of ProtocolError.
44 45 46 47 48 49 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 44 def initialize(klass, protocol, missing_methods) @klass = klass @protocol = protocol @missing_methods = missing_methods super("#{klass} missing: #{missing_methods.join(', ')}") end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
42 43 44 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 42 def klass @klass end |
#missing_methods ⇒ Object (readonly)
Returns the value of attribute missing_methods.
42 43 44 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 42 def missing_methods @missing_methods end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
42 43 44 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 42 def protocol @protocol end |