Sha256: 1a1f719e4ee914edda3e0e6a00a3bcf34c8d8d22f7e5f36eef568cb72481af09
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
class Circuitbox class ServiceFailureError < Circuitbox::Error attr_reader :service, :original def initialize(service, exception) @service = service @original = exception # we copy over the original exceptions backtrace if there is one backtrace = exception.backtrace set_backtrace(backtrace) unless backtrace.empty? end def to_s "#{self.class.name} wrapped: #{original}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems