Sha256: 2dabf750f8a2531a9124bb5d07c666a5293c1d4499bc56591116fcf9ce671a49

Contents?: true

Size: 803 Bytes

Versions: 3

Compression:

Stored size: 803 Bytes

Contents

# frozen_string_literal: true

# [8, 32, 123, {}, "wamp.error.not_authorized"]
# [8, 34, 123, {}, "wamp.error.no_such_subscription"]
# [8, 16, 123, {}, "wamp.error.not_authorized"]
# [8, 64, 123, {}, "wamp.error.procedure_already_exists"]
# [8, 66, 123, {}, "wamp.error.no_such_registration]
# [8, 68, 123, {}, "com.myapp.error.object_write_protected", ["Object is write protected."], {"severity": 3}]
# [8, 48, 123, {}, "com.myapp.error.object_write_protected", ["Object is write protected."], {"severity": 3}]
module Wamp
  module Type
    # Error Type
    class Error
      attr_reader :uri, :args, :kwargs, :details

      def initialize(uri:, args: [], kwargs: {}, details: {})
        @uri = uri
        @args = args
        @kwargs = kwargs
        @details = details
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xconn-0.1.2 lib/wamp/type/error.rb
xconn-0.1.1 lib/wamp/type/error.rb
xconn-0.1.0 lib/wamp/type/error.rb