Sha256: 14865e05945a4a16eb47edead2cb636df523a559c6b55c32de4c89812fb77397

Contents?: true

Size: 304 Bytes

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
with_advisory_lock-3.2.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-3.1.1 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-3.1.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-3.0.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-2.0.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-1.0.0 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.11 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.10 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.9 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.8 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.7 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.6 lib/with_advisory_lock/nested_advisory_lock_error.rb
with_advisory_lock-0.0.5 lib/with_advisory_lock/nested_advisory_lock_error.rb