Exception: Arcade::InvalidParamsError

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

Overview

used by Dry::Validation, not covered by “error”

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, message) ⇒ InvalidParamsError

# @param [String] message of the error.

Parameters:

  • object (Hash)

    that contains details about params errors.



40
41
42
43
# File 'lib/arcade/errors.rb', line 40

def initialize(object, message)
  @object = object
  super(message)
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



37
38
39
# File 'lib/arcade/errors.rb', line 37

def object
  @object
end