Module: Lavin::Failure

Defined in:
lib/lavin/failure.rb

Instance Method Summary collapse

Instance Method Details

#failure(msg) ⇒ Object

Raises:



7
8
9
# File 'lib/lavin/failure.rb', line 7

def failure(msg)
  raise RecoverableError, msg
end

#failure!(msg) ⇒ Object

Raises:



11
12
13
# File 'lib/lavin/failure.rb', line 11

def failure!(msg)
  raise IrrecoverableError, msg
end