Module: Rwc::Core::Concerns::ErrorHandling::Validatable
- Included in:
- BaseService
- Defined in:
- lib/rwc/core/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.
68 69 70 71 |
# File 'lib/rwc/core/concerns/error_handling.rb', line 68 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.
77 78 79 |
# File 'lib/rwc/core/concerns/error_handling.rb', line 77 def raise_error!() raise ServiceError, end |
#should_run_checks? ⇒ Boolean
Checks if validation checks should be performed.
61 62 63 |
# File 'lib/rwc/core/concerns/error_handling.rb', line 61 def should_run_checks? self.class.should_run_checks end |