class Moneta::Api::RuntimeException

Attributes

code[RW]
detail[RW]

Public Instance Methods

inspect() click to toggle source
# File lib/moneta/api/runtime_exception.rb, line 6
def inspect
  error = [ "#{ code }: #{ message }" ]
  error += detail.collect { |key, value| "#{ key }: #{ Array(value).join($/) }" }
  error.join($/)
end
to_hash() click to toggle source
# File lib/moneta/api/runtime_exception.rb, line 12
def to_hash
  {
    code: code,
    message: message,
    detail: detail
  }
end