Sha256: ce3a83381a7627ed0e8b9e61e97ae6646ff401928bf03da14d8a1858310fbc50

Contents?: true

Size: 215 Bytes

Versions: 8

Compression:

Stored size: 215 Bytes

Contents

module Emites
  class Exception < StandardError
    attr_accessor :code, :body

    def initialize(args = {})
      super(args[:message])
      @code     = args[:code]
      @body     = args[:body]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
emites-client-0.1.4 lib/emites/exception.rb
emites-client-0.1.3 lib/emites/exception.rb
emites-client-0.1.2 lib/emites/exception.rb
emites-client-0.1.1 lib/emites/exception.rb
emites-client-0.1.0 lib/emites/exception.rb
emites-client-0.0.4 lib/emites/exception.rb
emites-client-0.0.3 lib/emites/exception.rb
emites-client-0.0.2 lib/emites/exception.rb