Exception: RedmineClient::Errors::UnprocessableEntityException

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

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ UnprocessableEntityException

Returns a new instance of UnprocessableEntityException.



16
17
18
# File 'lib/redmine_client/errors.rb', line 16

def initialize(response)
  @errors = response.parsed_response['errors']
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/redmine_client/errors.rb', line 20

def to_s
  @errors.join(', ')
end