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