Exception: Pangea::Errors::SynthesisError
- Inherits:
-
PangeaError
- Object
- StandardError
- PangeaError
- Pangea::Errors::SynthesisError
- Defined in:
- lib/pangea/errors.rb
Instance Attribute Summary
Attributes inherited from PangeaError
#cause_chain, #context, #timestamp
Class Method Summary collapse
- .circular_dependency(resource1, resource2) ⇒ Object
- .invalid_template(template_name, reason) ⇒ Object
Methods inherited from PangeaError
#detailed_message, #initialize, #to_h
Constructor Details
This class inherits a constructor from Pangea::Errors::PangeaError
Class Method Details
.circular_dependency(resource1, resource2) ⇒ Object
111 112 113 114 |
# File 'lib/pangea/errors.rb', line 111 def self.circular_dependency(resource1, resource2) new("Circular dependency detected between #{resource1} and #{resource2}", context: { resource1: resource1, resource2: resource2 }) end |
.invalid_template(template_name, reason) ⇒ Object
106 107 108 109 |
# File 'lib/pangea/errors.rb', line 106 def self.invalid_template(template_name, reason) new("Failed to synthesize template '#{template_name}': #{reason}", context: { template_name: template_name, reason: reason }) end |