# File lib/deltacloud/drivers/exceptions.rb, line 163 def initialize(&block) @exception_definitions = [] instance_eval(&block) if block_given? self end
# File lib/deltacloud/drivers/exceptions.rb, line 169 def on(*conditions, &block) @exception_definitions << ExceptionDef::new(conditions, &block) if block_given? end