Exception: Shojiku::TemplateRoot::Rejected
- Inherits:
-
StandardError
- Object
- StandardError
- Shojiku::TemplateRoot::Rejected
- Defined in:
- lib/shojiku/template_root.rb
Overview
A refused name or an unreadable template, with the machine-readable
kind the failure trace carries.
Instance Attribute Summary collapse
-
#cause_message ⇒ Object
readonly
Returns the value of attribute cause_message.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(kind, message, cause_message: nil) ⇒ Rejected
constructor
A new instance of Rejected.
Constructor Details
#initialize(kind, message, cause_message: nil) ⇒ Rejected
Returns a new instance of Rejected.
72 73 74 75 76 |
# File 'lib/shojiku/template_root.rb', line 72 def initialize(kind, , cause_message: nil) @kind = kind @cause_message = super() end |
Instance Attribute Details
#cause_message ⇒ Object (readonly)
Returns the value of attribute cause_message.
70 71 72 |
# File 'lib/shojiku/template_root.rb', line 70 def @cause_message end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
70 71 72 |
# File 'lib/shojiku/template_root.rb', line 70 def kind @kind end |