class Potluck::PostgresError

Error class used to wrap errors encountered while connecting to or setting up a database.

Attributes

wrapped_error[R]

Public Class Methods

new(message, wrapped_error = nil) click to toggle source

Creates a new instance.

  • message - Error message.

  • wrapped_error - Original error that was rescued and is being wrapped by this one (optional).

Calls superclass method
# File lib/potluck/postgres.rb, line 19
def initialize(message, wrapped_error = nil)
  super(message)

  @wrapped_error = wrapped_error
end