Exception: ChatbotHelper::Exceptions::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ChatbotHelper::Exceptions::Error
- Defined in:
- lib/chatbot_helper/exceptions.rb
Overview
A default Error class which should not be used but instead subclassed
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*errors) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(*errors) ⇒ Error
Returns a new instance of Error.
7 8 9 |
# File 'lib/chatbot_helper/exceptions.rb', line 7 def initialize(*errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/chatbot_helper/exceptions.rb', line 5 def errors @errors end |
Class Method Details
.description ⇒ Object
12 13 14 |
# File 'lib/chatbot_helper/exceptions.rb', line 12 def description raise NotImplementedError, 'Description of subclass not implemented' end |