Exception: Momomoto::Error

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

Overview

Base exception for all exceptions thrown by Momomoto

Instance Attribute Summary collapse

Instance Method Summary collapse

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( message = nil, sql = nil )
  super( message )
  self.sql = sql
end

Instance Attribute Details

#sqlObject

contains the sql statement causing the exception



67
68
69
# File 'lib/momomoto/base.rb', line 67

def sql
  @sql
end