Exception: ActiveRecordDoctor::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ActiveRecordDoctor::Error
- Defined in:
- lib/active_record_doctor/errors.rb,
lib/active_record_doctor/errors.rb
Overview
Generic active_record_doctor exception class.
Direct Known Subclasses
ConfigurationError, ConfigurationFileMissing, ConfigureCalledTwice, ConfigureNotCalled, DetectorConfiguredTwice, DuplicateGlobalSetting, UnrecognizedDetectorName, UnrecognizedDetectorSettings, UnrecognizedGlobalSetting
Defined Under Namespace
Classes: ConfigurationError, ConfigurationFileMissing, ConfigureCalledTwice, ConfigureNotCalled, DetectorConfiguredTwice, DuplicateGlobalSetting, UnrecognizedDetectorName, UnrecognizedDetectorSettings, UnrecognizedGlobalSetting
Instance Attribute Summary collapse
-
#config_path ⇒ Object
Returns the value of attribute config_path.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config_path ⇒ Object
Returns the value of attribute config_path.
13 14 15 |
# File 'lib/active_record_doctor/errors.rb', line 13 def config_path @config_path end |
Class Method Details
.[](*args) ⇒ Object
15 16 17 |
# File 'lib/active_record_doctor/errors.rb', line 15 def self.[](*args) new(*args) end |
Instance Method Details
#details ⇒ Object
19 20 21 |
# File 'lib/active_record_doctor/errors.rb', line 19 def details nil end |
#user_message ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/active_record_doctor/errors.rb', line 23 def result = <<-MESSAGE active_record_doctor aborted due to the following error: #{} Configuration file: #{} MESSAGE if details result << ( <<-MESSAGE Additional information: #{details} MESSAGE ) end result end |