Exception: Tenax::UnknownProfileError

Inherits:
ConfigurationError show all
Defined in:
lib/tenax/errors.rb

Overview

Raised when a profile is referenced by a name that wasn't registered.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile_name, known_profiles) ⇒ UnknownProfileError

Returns a new instance of UnknownProfileError.



29
30
31
32
33
# File 'lib/tenax/errors.rb', line 29

def initialize(profile_name, known_profiles)
  @profile_name = profile_name
  @known_profiles = known_profiles
  super("unknown profile #{profile_name.inspect}. Known: #{known_profiles.inspect}")
end

Instance Attribute Details

#known_profiles ⇒ Object (readonly)

Returns the value of attribute known_profiles.



27
28
29
# File 'lib/tenax/errors.rb', line 27

def known_profiles
  @known_profiles
end

#profile_name ⇒ Object (readonly)

Returns the value of attribute profile_name.



27
28
29
# File 'lib/tenax/errors.rb', line 27

def profile_name
  @profile_name
end