class Attributor::InvalidDefinition
Attributes
cause[R]
Public Class Methods
new(type, cause)
click to toggle source
Calls superclass method
# File lib/attributor/types/hash.rb, line 3 def initialize(type, cause) type_name = if type.name type.name else type.inspect end msg = "Structure definition for type #{type_name} is invalid. The following exception has occurred: #{cause.inspect}" super(msg) @cause = cause end