Sha256: eb52603fe9808bcb08cf7a1ba1704c3741ff4544ee16dcbf12a91234594d59b9
Contents?: true
Size: 268 Bytes
Versions: 4
Compression:
Stored size: 268 Bytes
Contents
module Asynchronic class Error attr_reader :message, :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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
asynchronic-4.0.3 | lib/asynchronic/error.rb |
asynchronic-4.0.2 | lib/asynchronic/error.rb |
asynchronic-4.0.1 | lib/asynchronic/error.rb |
asynchronic-4.0.0 | lib/asynchronic/error.rb |