Sha256: faed3fcc87d98e82595bf54721533f6b23dafcbd68ad5c364c519fde4c48cce8
Contents?: true
Size: 429 Bytes
Versions: 17
Compression:
Stored size: 429 Bytes
Contents
module Moneta module Api class RuntimeException < Exception attr_accessor :code, :detail def inspect error = [ "#{ code }: #{ message }" ] error += detail.collect { |key, value| "#{ key }: #{ Array(value).join($/) }" } error.join($/) end def to_hash { code: code, message: message, detail: detail } end end end end
Version data entries
17 entries across 17 versions & 1 rubygems