Class: Potluck::PostgresError
- Inherits:
-
ServiceError
- Object
- ServiceError
- Potluck::PostgresError
- Defined in:
- lib/potluck/postgres.rb
Overview
Error class used to wrap errors encountered while connecting to or setting up a database.
Instance Attribute Summary collapse
-
#wrapped_error ⇒ Object
readonly
Returns the value of attribute wrapped_error.
Instance Method Summary collapse
-
#initialize(message, wrapped_error = nil) ⇒ PostgresError
constructor
Creates a new instance.
Constructor Details
#initialize(message, wrapped_error = nil) ⇒ PostgresError
Creates a new instance.
-
message- Error message. -
wrapped_error- Original error that was rescued and is being wrapped by this one (optional).
19 20 21 22 23 |
# File 'lib/potluck/postgres.rb', line 19 def initialize(, wrapped_error = nil) super() @wrapped_error = wrapped_error end |
Instance Attribute Details
#wrapped_error ⇒ Object (readonly)
Returns the value of attribute wrapped_error.
11 12 13 |
# File 'lib/potluck/postgres.rb', line 11 def wrapped_error @wrapped_error end |