Exception: Momomoto::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Momomoto::Error
- Defined in:
- lib/momomoto/base.rb
Overview
Base exception for all exceptions thrown by Momomoto
Direct Known Subclasses
ConversionError, CriticalError, Nothing_found, Too_many_records
Instance Attribute Summary collapse
-
#sql ⇒ Object
contains the sql statement causing the exception.
Instance Method Summary collapse
-
#initialize(message = nil, sql = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, sql = nil) ⇒ Error
Returns a new instance of Error.
69 70 71 72 |
# File 'lib/momomoto/base.rb', line 69 def initialize( = nil, sql = nil ) super( ) self.sql = sql end |
Instance Attribute Details
#sql ⇒ Object
contains the sql statement causing the exception
67 68 69 |
# File 'lib/momomoto/base.rb', line 67 def sql @sql end |