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