Exception: GoodGuide::Gibbon::SemanticError
- Inherits:
-
StandardError
- Object
- StandardError
- GoodGuide::Gibbon::SemanticError
- Includes:
- Util
- Defined in:
- lib/goodguide/gibbon.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(errors, context) ⇒ SemanticError
constructor
A new instance of SemanticError.
- #message ⇒ Object
- #messages ⇒ Object
Methods included from Util
#hash_to_ruby, #obj_to_js, #obj_to_ruby
Constructor Details
#initialize(errors, context) ⇒ SemanticError
Returns a new instance of SemanticError.
127 128 129 130 |
# File 'lib/goodguide/gibbon.rb', line 127 def initialize(errors, context) @errors = errors @context = context end |
Instance Method Details
#message ⇒ Object
136 137 138 |
# File 'lib/goodguide/gibbon.rb', line 136 def .join(', ') end |
#messages ⇒ Object
132 133 134 |
# File 'lib/goodguide/gibbon.rb', line 132 def @errors.map(&method(:semantic_error_message)) end |