Exception: VCSEIF_Exceptions::VCSEIF_Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vcseif/utils/exceptions.rb

Constant Summary collapse

@@log_level =
'info'

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#verbiageObject

Returns the value of attribute verbiage.



35
36
37
# File 'lib/vcseif/utils/exceptions.rb', line 35

def verbiage
  @verbiage
end