Exception: ESP::AddExternalAccountError
- Inherits:
-
StandardError
- Object
- StandardError
- ESP::AddExternalAccountError
- Defined in:
- lib/esp/external_account_creator.rb
Constant Summary collapse
- EXIT_CODES =
{ '12 characters' => 98, 'not a number' => 97, 'organization not found' => 96, 'sub organization' => 95, 'team' => 94, 'external account' => 93 }.freeze
Instance Method Summary collapse
- #exit_code ⇒ Object
-
#initialize(message = nil) ⇒ AddExternalAccountError
constructor
A new instance of AddExternalAccountError.
Constructor Details
#initialize(message = nil) ⇒ AddExternalAccountError
Returns a new instance of AddExternalAccountError.
12 13 14 |
# File 'lib/esp/external_account_creator.rb', line 12 def initialize( = nil) super end |
Instance Method Details
#exit_code ⇒ Object
16 17 18 19 20 |
# File 'lib/esp/external_account_creator.rb', line 16 def exit_code EXIT_CODES.detect { |key, _code| =~ /#{key}/i }.last rescue StandardError 1 end |