Sha256: b47bf9bfcf42806199f867182c17a698a760589e1eb247948bed8faa97496457

Contents?: true

Size: 287 Bytes

Versions: 29

Compression:

Stored size: 287 Bytes

Contents

module Asynchronic
  class Error

    attr_reader :message
    attr_reader :backtrace
    
    def initialize(source)
      @message = source.respond_to?(:message) ? source.message : source.to_s
      @backtrace = source.respond_to?(:backtrace) ? source.backtrace : []
    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
asynchronic-3.0.3 lib/asynchronic/error.rb
asynchronic-3.0.2 lib/asynchronic/error.rb
asynchronic-3.0.1 lib/asynchronic/error.rb
asynchronic-3.0.0 lib/asynchronic/error.rb
asynchronic-2.0.1 lib/asynchronic/error.rb
asynchronic-2.0.0 lib/asynchronic/error.rb
asynchronic-1.6.3 lib/asynchronic/error.rb
asynchronic-1.6.2 lib/asynchronic/error.rb
asynchronic-1.6.1 lib/asynchronic/error.rb
asynchronic-1.6.0 lib/asynchronic/error.rb
asynchronic-1.5.2 lib/asynchronic/error.rb
asynchronic-1.5.1 lib/asynchronic/error.rb
asynchronic-1.5.0 lib/asynchronic/error.rb
asynchronic-1.4.0 lib/asynchronic/error.rb
asynchronic-1.3.1 lib/asynchronic/error.rb
asynchronic-1.3.0 lib/asynchronic/error.rb
asynchronic-1.2.2 lib/asynchronic/error.rb
asynchronic-1.2.1 lib/asynchronic/error.rb
asynchronic-1.2.0 lib/asynchronic/error.rb
asynchronic-1.1.1 lib/asynchronic/error.rb