Exception: Hamburglar::InvalidGateway

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hamburglar/errors.rb

Overview

Raised when trying to assign an invalid gateway to Hamburglar.gateway

Instance Method Summary (collapse)

Constructor Details

- (InvalidGateway) initialize(gateway = nil)



4
5
6
7
8
# File 'lib/hamburglar/errors.rb', line 4

def initialize(gateway = nil)
  msg = "Invalid gateway"
  msg << ", #{gateway}" if gateway
  super msg
end