Exception: Starcall::Errors::InvalidRegion
- Inherits:
-
StandardError
- Object
- StandardError
- Starcall::Errors::InvalidRegion
- Defined in:
- lib/starcall/errors/invalid_region.rb
Overview
A Custom error message, used when an incorrect region is passed.
Instance Method Summary collapse
-
#initialize(region:) ⇒ InvalidRegion
constructor
A new instance of InvalidRegion.
- #message ⇒ Object
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
#message ⇒ Object
12 13 14 |
# File 'lib/starcall/errors/invalid_region.rb', line 12 def "#{region} is not a valid region. Please consult Starcall::Regions.list for a list of valid regions." end |