Exception: Foobara::Value::Processor::Casting::CannotCastError

Inherits:
DataError
  • Object
show all
Defined in:
foobara-0.0.110/projects/value/src/processor/casting.rb

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

Returns:

  • (Boolean)


10
11
12
# File 'foobara-0.0.110/projects/value/src/processor/casting.rb', line 10

def fatal?
  true
end

Instance Method Details

#messageObject



15
16
17
18
19
20
21
# File 'foobara-0.0.110/projects/value/src/processor/casting.rb', line 15

def message
  if path.empty?
    super
  else
    "At #{path.join(".")}: #{super}"
  end
end