Exception: ActiveRecord::NoDatabaseError

Inherits:
ActiveRecordError show all
Defined in:
activerecord/lib/active_record/errors.rb

Overview

Raised when a given database does not exist

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ NoDatabaseError

Returns a new instance of NoDatabaseError.



99
100
101
# File 'activerecord/lib/active_record/errors.rb', line 99

def initialize(message)
  super extend_message(message)
end

Instance Method Details

#extend_message(message) ⇒ Object

can be over written to add additional error information.



104
105
106
# File 'activerecord/lib/active_record/errors.rb', line 104

def extend_message(message)
  message
end