Class: Lutaml::Xsd::Errors::Troubleshooters::TroubleshootingHandler
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Errors::Troubleshooters::TroubleshootingHandler
- Defined in:
- lib/lutaml/xsd/errors/troubleshooters/troubleshooting_handler.rb
Overview
Base class for troubleshooting handlers
Troubleshooting handlers provide actionable tips to help users resolve errors.
Direct Known Subclasses
Instance Method Summary collapse
-
#generate_tips(error) ⇒ Array<String>
Generate tips for the error.
-
#tips_for(error) ⇒ Array<String>
abstract
Generate troubleshooting tips for the given error.
Instance Method Details
#generate_tips(error) ⇒ Array<String>
Generate tips for the error
Alias for tips_for to support chain of responsibility pattern
40 41 42 |
# File 'lib/lutaml/xsd/errors/troubleshooters/troubleshooting_handler.rb', line 40 def generate_tips(error) tips_for(error) end |
#tips_for(error) ⇒ Array<String>
This method is abstract.
Subclasses must implement this method
Generate troubleshooting tips for the given error
30 31 32 |
# File 'lib/lutaml/xsd/errors/troubleshooters/troubleshooting_handler.rb', line 30 def tips_for(error) raise NotImplementedError, "#{self.class} must implement #tips_for" end |