Exception: Sxn::SessionTemplateNotFoundError
- Inherits:
-
SessionTemplateError
- Object
- StandardError
- Error
- SessionTemplateError
- Sxn::SessionTemplateNotFoundError
- Defined in:
- lib/sxn/errors.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(name, available: []) ⇒ SessionTemplateNotFoundError
constructor
A new instance of SessionTemplateNotFoundError.
Constructor Details
#initialize(name, available: []) ⇒ SessionTemplateNotFoundError
Returns a new instance of SessionTemplateNotFoundError.
80 81 82 83 84 |
# File 'lib/sxn/errors.rb', line 80 def initialize(name, available: []) = "Session template '#{name}' not found" += ". Available templates: #{available.join(", ")}" if available.any? super() end |