class Deltacloud::ExceptionHandler::Exceptions

Attributes

exception_definitions[R]

Public Class Methods

new(&block) click to toggle source
# File lib/deltacloud/drivers/exceptions.rb, line 163
def initialize(&block)
  @exception_definitions = []
  instance_eval(&block) if block_given?
  self
end

Public Instance Methods

on(*conditions, &block) click to toggle source
# File lib/deltacloud/drivers/exceptions.rb, line 169
def on(*conditions, &block)
  @exception_definitions << ExceptionDef::new(conditions, &block) if block_given?
end