Class: RazorRisk::Razor::Control::Exceptions::ControlException Abstract
- Inherits:
-
Core::Diagnostics::Exceptions::RRCSBaseException
- Object
- Core::Diagnostics::Exceptions::RRCSBaseException
- RazorRisk::Razor::Control::Exceptions::ControlException
- Includes:
- Pantheios
- Defined in:
- lib/razor_risk/razor/control/exceptions.rb
Overview
This class is abstract.
Root exception class for Control module
Direct Known Subclasses
Defined Under Namespace
Modules: Constants
Instance Attribute Summary collapse
-
#options ⇒ ::Hash
readonly
The options hash.
Class Method Summary collapse
-
.new(*args) ⇒ Object
Override of
new
to enforce abstract exception classes cannot be constructed.
Instance Method Summary collapse
-
#initialize(message, **options) ⇒ ControlException
constructor
Initialises an instance, based on the given message and options.
Constructor Details
#initialize(message, **options) ⇒ ControlException
Initialises an instance, based on the given message and options
78 79 80 81 82 83 84 85 |
# File 'lib/razor_risk/razor/control/exceptions.rb', line 78 def initialize , ** trace ParamNames[ :message, :options ], , super , ** @options = {}.merge! end |
Instance Attribute Details
#options ⇒ ::Hash (readonly)
Returns the options hash.
69 70 71 |
# File 'lib/razor_risk/razor/control/exceptions.rb', line 69 def @options end |
Class Method Details
.new(*args) ⇒ Object
Override of new
to enforce abstract exception classes cannot be constructed.
58 59 60 61 62 63 64 65 66 |
# File 'lib/razor_risk/razor/control/exceptions.rb', line 58 def self.new *args if Constants::ABSTRACT_CLASSES.include?(self.name.split('::')[-1]) raise NoMethodError, "private method `new' called for #{self}:Class" end super end |