Exception: Starcall::Errors::InvalidRegion

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

Overview

A Custom error message, used when an incorrect region is passed.

Instance Method Summary collapse

Constructor Details

#initialize(region:) ⇒ InvalidRegion

Returns a new instance of InvalidRegion.



7
8
9
10
# File 'lib/starcall/errors/invalid_region.rb', line 7

def initialize(region:)
  super
  @region = region
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/starcall/errors/invalid_region.rb', line 12

def message
  "#{region} is not a valid region. Please consult Starcall::Regions.list for a list of valid regions."
end