Exception representing invalid requests made to the API.
# File lib/simplify/apiexception.rb, line 116 def initialize(message, status, errorData) super(message, status, errorData) @fieldErrors = [] if errorData.has_key?('error') error = errorData['error'] if error.has_key?('fieldErrors') fieldErrors = error['fieldErrors'] fieldErrors.each do |fieldError| @fieldErrors << FieldError.new(fieldError) end end end end
Returns a string description of the error including any field errors.
# File lib/simplify/apiexception.rb, line 138 def describe() s = super_describe() @fieldErrors.each do |fieldError| s = s + "\n" + fieldError.to_s end return s + "\n" end
Generated with the Darkfish Rdoc Generator 2.