Exception: Tenax::UnknownProfileError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- Tenax::UnknownProfileError
- Defined in:
- lib/tenax/errors.rb
Overview
Raised when a profile is referenced by a name that wasn't registered.
Instance Attribute Summary collapse
-
#known_profiles ⇒ Object
readonly
Returns the value of attribute known_profiles.
-
#profile_name ⇒ Object
readonly
Returns the value of attribute profile_name.
Instance Method Summary collapse
-
#initialize(profile_name, known_profiles) ⇒ UnknownProfileError
constructor
A new instance of UnknownProfileError.
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 |