Exception: VBS::Requests::InvalidRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vbs/requests/invalid_request_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_schema_errors) ⇒ InvalidRequestError

Returns a new instance of InvalidRequestError.



8
9
10
11
12
# File 'lib/vbs/requests/invalid_request_error.rb', line 8

def initialize(json_schema_errors)
  @errors = json_schema_errors
  message = json_schema_errors.pluck(:message)
  super(message)
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/vbs/requests/invalid_request_error.rb', line 6

def errors
  @errors
end