Exception: Sxn::SessionTemplateNotFoundError

Inherits:
SessionTemplateError show all
Defined in:
lib/sxn/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

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: [])
  message = "Session template '#{name}' not found"
  message += ". Available templates: #{available.join(", ")}" if available.any?
  super(message)
end