Exception: ChatbotHelper::Exceptions::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/chatbot_helper/exceptions.rb

Overview

A default Error class which should not be used but instead subclassed

Direct Known Subclasses

InvalidResource

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#errorsObject (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

.descriptionObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/chatbot_helper/exceptions.rb', line 12

def description
  raise NotImplementedError, 'Description of subclass not implemented'
end