Exception: VCSEIF_Exceptions::VCSEIF_Exception
- Inherits:
-
StandardError
- Object
- StandardError
- VCSEIF_Exceptions::VCSEIF_Exception
- Defined in:
- lib/vcseif/utils/exceptions.rb
Direct Known Subclasses
ConfigurationError, NonFatalConfigurationError, OperationalError, RecoverableException, UnrecoverableException
Constant Summary collapse
- @@log_level =
'info'
Instance Attribute Summary collapse
-
#verbiage ⇒ Object
Returns the value of attribute verbiage.
Instance Method Summary collapse
-
#initialize(msg, logger = nil) ⇒ VCSEIF_Exception
constructor
A new instance of VCSEIF_Exception.
Constructor Details
#initialize(msg, logger = nil) ⇒ VCSEIF_Exception
Returns a new instance of VCSEIF_Exception.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/vcseif/utils/exceptions.rb', line 37 def initialize(msg, logger=nil) mod_name, class_name = self.class.name.split("::") if !logger.nil? logger.send(@@log_level, msg, self) elsif ($_blurt and !$_logger.nil?) $_logger.send(@@log_level, msg, self) #else ## prepend the specific exception class name to the msg text # $stderr.write("%s: %s\n" % [class_name, msg]) end @verbiage = msg end |
Instance Attribute Details
#verbiage ⇒ Object
Returns the value of attribute verbiage.
35 36 37 |
# File 'lib/vcseif/utils/exceptions.rb', line 35 def verbiage @verbiage end |