Exception: AMEE::BadData
- Inherits:
-
Exception
- Object
- Exception
- AMEE::BadData
- Defined in:
- lib/amee/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ BadData
constructor
A new instance of BadData.
- #to_s ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ BadData
Returns a new instance of BadData.
10 11 12 13 14 |
# File 'lib/amee/exceptions.rb', line 10 def initialize(msg = nil) super(msg) @msg = msg @last_err = $! end |
Instance Method Details
#to_s ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/amee/exceptions.rb', line 15 def to_s if @last_err ([@msg, @last_err.]+@last_err.backtrace).join "\n" else super end end |