Method: ContentGateway::ValidationError#initialize
- Defined in:
- lib/content_gateway/exceptions.rb
#initialize(resource_url, wrapped_exception = nil) ⇒ ValidationError
Returns a new instance of ValidationError.
56 57 58 59 60 61 62 63 |
# File 'lib/content_gateway/exceptions.rb', line 56 def initialize(resource_url, wrapped_exception = nil) super(resource_url, wrapped_exception, 422) if wrapped_exception response = wrapped_exception.response @errors = JSON.parse(response) if response.present? end end |