Exception: Gly::Exception

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

Overview

general application-specific error

Direct Known Subclasses

ParseError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#wrapped_exceptionObject

may be nil



11
12
13
# File 'lib/gly/exceptions.rb', line 11

def wrapped_exception
  @wrapped_exception
end

Class Method Details

.wrap(exception) ⇒ Object



4
5
6
7
8
# File 'lib/gly/exceptions.rb', line 4

def self.wrap(exception)
  e = new exception.message
  e.wrapped_exception = exception
  e
end