class Amply::Exceptions::ValidationException

Attributes

errors[R]

Public Class Methods

new(response) click to toggle source
Calls superclass method
# File lib/amply/exceptions/validation_exception.rb, line 8
def initialize(response)
  @errors = JSON.parse(response.body, symbolize_names: true)[:errors]

  super
end

Public Instance Methods

message() click to toggle source
# File lib/amply/exceptions/validation_exception.rb, line 14
def message
  'A validation error occurred while making an API request'
end