Sha256: 9fe3aa75f052aea7d638013ce3cd77ae572c2eafc2fb2d32a312927e14c15cd3

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

module WithAdvisoryLock
  class NestedAdvisoryLockError < StandardError
    attr_accessor :lock_stack

    def initialize(msg = nil, lock_stack = nil)
      super(msg)
      @lock_stack = lock_stack
    end

    def to_s
      super + (lock_stack ? ": lock stack = #{lock_stack}" : '')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
with_advisory_lock-4.6.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-4.0.0 lib/with_advisory_lock/nested_advisory_lock_error.rb