class Breakers::OutageException

The error that is raised when a request is made against a service that is experiencing an outage

Attributes

outage[R]
service[R]

Public Class Methods

new(outage, service) click to toggle source
# File lib/breakers/outage_exception.rb, line 8
def initialize(outage, service)
  @outage = outage
  @service = service
end

Public Instance Methods

message() click to toggle source
# File lib/breakers/outage_exception.rb, line 13
def message
  "Outage detected on #{@service.name} beginning at #{@outage.start_time.to_i}"
end