Exception: Slidict::External::SlidictIo::Client::Unprocessable

Inherits:
Error
  • Object
show all
Defined in:
lib/slidict/external/slidict_io/client.rb

Overview

Raised for 422 responses other than "not_editable", carrying the API's validation errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors: []) ⇒ Unprocessable

Returns a new instance of Unprocessable.



24
25
26
27
# File 'lib/slidict/external/slidict_io/client.rb', line 24

def initialize(message, errors: [])
  super(message)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



22
23
24
# File 'lib/slidict/external/slidict_io/client.rb', line 22

def errors
  @errors
end