Sha256: 8e7dd74b4258e0e416976a9c416a92af2dc447fb42df4c87a445eca146499948
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true class Circuitbox class ServiceFailureError < Circuitbox::Error attr_reader :service, :original def initialize(service, exception) super() @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}: Service #{service.inspect} was unavailable (original: #{original})" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
circuitbox-2.0.0 | lib/circuitbox/errors/service_failure_error.rb |
circuitbox-2.0.0.pre5 | lib/circuitbox/errors/service_failure_error.rb |