Exception: Rito::Error::RegionError

Inherits:
RitoError
  • Object
show all
Defined in:
lib/rito/error/region_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(name:, version: nil, region:) ⇒ RegionError

Returns a new instance of RegionError


4
5
6
7
# File 'lib/rito/error/region_error.rb', line 4

def initialize(name:, version: nil, region:)
msg = "#{region} is not a valid region for #{name}" + ((!version.nil? && " v#{version}") || "")
  super(msg)
end