Exception: Flott::FlottException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flott.rb

Overview

The base exception of all Flott Exceptions, Errors.

Direct Known Subclasses

ParserError

Class Method Summary collapse

Class Method Details

.wrap(exception) ⇒ Object

Wrap exception into a FlottException, including the given backtrace.



120
121
122
123
124
# File 'lib/flott.rb', line 120

def self.wrap(exception)
  wrapper = new(exception.message)
  wrapper.set_backtrace exception.backtrace
  wrapper
end