Sha256: 5388cc414f62b101197b4254cecb9168c42d0dc6e20264529fd0d4e635091aa9
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module MultiMime class AdapterError < ArgumentError attr_reader :cause def self.build(original_exception) message = "Did not recognize your adapter specification (#{original_exception.message})." new(message).tap do |exception| exception.instance_eval do @cause = original_exception set_backtrace original_exception.backtrace end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_mime-1.1.0 | lib/multi_mime/adapter_error.rb |
multi_mime-1.0.1 | lib/multi_mime/adapter_error.rb |