Exception: AwsLocalConfigParser::NoMatchingSsoSession

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sso_session:, config_path:) ⇒ NoMatchingSsoSession

Returns a new instance of NoMatchingSsoSession.



34
35
36
37
38
# File 'lib/aws_local_config_parser/errors.rb', line 34

def initialize(sso_session:, config_path:)
  @sso_session = sso_session
  @config_path = config_path
  super(msg: message)
end

Instance Attribute Details

#config_pathObject (readonly)

Returns the value of attribute config_path.



32
33
34
# File 'lib/aws_local_config_parser/errors.rb', line 32

def config_path
  @config_path
end

#sso_sessionObject (readonly)

Returns the value of attribute sso_session.



32
33
34
# File 'lib/aws_local_config_parser/errors.rb', line 32

def sso_session
  @sso_session
end

Instance Method Details

#messageObject



40
41
42
# File 'lib/aws_local_config_parser/errors.rb', line 40

def message
  "No matching sso-session, '#{sso_session}', in '#{config_path}'."
end