Module: VCSEIF_Exceptions

Defined in:
lib/vcseif/utils/exceptions.rb

Overview

Copyright 2001-2013 Rally Software Development Corp. All Rights Reserved.

Defined Under Namespace

Classes: ConfigurationError, NonFatalConfigurationError, OperationalError, RecoverableException, UnrecoverableException, VCSEIF_Exception

Class Method Summary collapse

Class Method Details

.logAllExceptions(truthiness, logger = nil) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/vcseif/utils/exceptions.rb', line 12

def self.logAllExceptions(truthiness, logger=nil)
    """
        Call this method when you want the convenience of raising the 
        Exception subclasses defined in this file module without having to supply
        an instance of a logger for each raise statement. 
        Simply supply the logger to be used in this call and you're set
        for the duration!
    """
    if truthiness and !logger.nil?
        $_blurt = true
        $_logger = logger
    else
        $_blurt = false
        $_logger = nil
    end
end