Exception: Foobara::Value::Processor::Casting::CannotCastError
Instance Attribute Summary
Attributes inherited from Error
#backtrace_when_initialized, #backtrace_when_raised, #context, #error_key, #is_fatal
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from DataError
#attribute_name, category, #eql?, #initialize
Methods inherited from Error
#==, abstract, abstract?, category, context, #eql?, #fatal?, foobara_manifest, #initialize, #key, message, path, #prepend_path!, runtime_path, subclass, symbol, to_h, #to_h, types_depended_on
Methods included from Concern
foobara_class_methods_module_for, foobara_concern?, included
Constructor Details
This class inherits a constructor from Foobara::Value::DataError
Class Method Details
.fatal? ⇒ Boolean
10 11 12 |
# File 'foobara-0.0.110/projects/value/src/processor/casting.rb', line 10 def fatal? true end |
Instance Method Details
#message ⇒ Object
15 16 17 18 19 20 21 |
# File 'foobara-0.0.110/projects/value/src/processor/casting.rb', line 15 def if path.empty? super else "At #{path.join(".")}: #{super}" end end |