Module: AuxiliaryRails::Concerns::Errorable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Application::Query, Performable
- Defined in:
- lib/auxiliary_rails/concerns/errorable.rb
Instance Method Summary collapse
Instance Method Details
#error!(message = nil) ⇒ Object
16 17 18 19 |
# File 'lib/auxiliary_rails/concerns/errorable.rb', line 16 def error!( = nil) ||= "`#{self.class}` raised error." raise self.class.error_class, end |