Module: Rwc::Concerns::ErrorHandling::Validatable
- Defined in:
- lib/rwc/concerns/error_handling.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Includes core error handling functionality and class methods.
Instance Method Summary collapse
-
#raise_error!(message) ⇒ Object
Raises a service error with the specified message.
-
#should_run_checks? ⇒ Boolean
Checks if validation checks should be performed.
Class Method Details
.included(base) ⇒ Object
Includes core error handling functionality and class methods.
67 68 69 70 |
# File 'lib/rwc/concerns/error_handling.rb', line 67 def self.included(base) base.include(Core) base.extend(ClassMethods) end |
Instance Method Details
#raise_error!(message) ⇒ Object
Raises a service error with the specified message.
76 77 78 |
# File 'lib/rwc/concerns/error_handling.rb', line 76 def raise_error!() raise ServiceError, end |
#should_run_checks? ⇒ Boolean
Checks if validation checks should be performed.
60 61 62 |
# File 'lib/rwc/concerns/error_handling.rb', line 60 def should_run_checks? self.class.should_run_checks end |