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

Returns a new instance of InvalidParameterError.



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

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

  super(message)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#sourceObject (readonly)

Returns the value of attribute source.



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

def source
  @source
end

Instance Method Details

#inspectObject



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

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