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.



32
33
34
35
# File 'lib/arcade/errors.rb', line 32

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



29
30
31
# File 'lib/arcade/errors.rb', line 29

def object
  @object
end