class Apia::RuntimeError

Runtime errors occurr during API requests because they could not be detected before an action is processed.

Public Instance Methods

hash() click to toggle source

Return the hash that describes this error

@return [Hash]

# File lib/apia/errors/runtime_error.rb, line 19
def hash
  {
    code: 'generic_runtime_error',
    description: message,
    detail: {
      class: self.class.name
    }
  }
end
http_status() click to toggle source

Return the default HTTP status code that should be returned when this error is encoutered over HTTP

@return [Integer]

# File lib/apia/errors/runtime_error.rb, line 12
def http_status
  400
end