Exception: TypedParams::InvalidParameterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/typed_params.rb

Direct Known Subclasses

UnpermittedParameterError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source:, path:) ⇒ InvalidParameterError



69
70
71
72
73
74
# File 'lib/typed_params.rb', line 69

def initialize(message, source:, path:)
  @source = source
  @path   = path

  super(message)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



66
67
68
# File 'lib/typed_params.rb', line 66

def path
  @path
end

#sourceObject (readonly)

Returns the value of attribute source.



66
67
68
# File 'lib/typed_params.rb', line 66

def source
  @source
end

Instance Method Details

#inspectObject



76
77
78
# File 'lib/typed_params.rb', line 76

def inspect
  "#<#{self.class.name} message=#{message.inspect} source=#{source.inspect} path=#{path.inspect}>"
end