Exception: Foobara::CommandConnector::UnknownError
- Inherits:
-
CommandConnectorError
- Object
- StandardError
- Error
- RuntimeError
- CommandConnectorError
- Foobara::CommandConnector::UnknownError
- Defined in:
- foobara-0.0.110/projects/command_connectors/src/command_connector/unknown_error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
Attributes inherited from Error
#backtrace_when_initialized, #backtrace_when_raised, #context, #error_key, #is_fatal, #message
Class Method Summary collapse
Methods inherited from CommandConnectorError
Methods inherited from RuntimeError
Methods inherited from Error
#==, abstract, abstract?, category, context, #eql?, fatal?, #fatal?, foobara_manifest, #initialize, #key, message, path, #prepend_path!, runtime_path, subclass, symbol, to_h, #to_h, types_depended_on
Methods included from Foobara::Concern
foobara_class_methods_module_for, foobara_concern?, included
Constructor Details
This class inherits a constructor from Foobara::CommandConnector::CommandConnectorError
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
12 13 14 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/unknown_error.rb', line 12 def error @error end |
Class Method Details
.for(error) ⇒ Object
5 6 7 8 9 |
# File 'foobara-0.0.110/projects/command_connectors/src/command_connector/unknown_error.rb', line 5 def for(error) new(message: error.).tap do |unknown_error| unknown_error.error = error end end |