Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Internal.Error
Description
Definitions of exception types.
- data DetailedQueryError = DetailedQueryError {
- qeSeverity :: !String
- qeErrorCode :: !ErrorCode
- qeMessagePrimary :: !String
- qeMessageDetail :: !(Maybe String)
- qeMessageHint :: !(Maybe String)
- qeStatementPosition :: !(Maybe Int)
- qeInternalPosition :: !(Maybe Int)
- qeInternalQuery :: !(Maybe String)
- qeContext :: !(Maybe String)
- qeSourceFile :: !(Maybe String)
- qeSourceLine :: !(Maybe Int)
- qeSourceFunction :: !(Maybe String)
- newtype QueryError = QueryError String
- newtype HPQTypesError = HPQTypesError String
- newtype LibPQError = LibPQError String
- data ConversionError = Exception e => ConversionError {
- convColumn :: !Int
- convColumnName :: !String
- convRow :: !Int
- convError :: !e
- data ArrayItemError = Exception e => ArrayItemError {
- arrItemIndex :: !Int
- arrItemError :: !e
- data InvalidValue t = InvalidValue {
- ivValue :: t
- ivValidValues :: Maybe [t]
- data RangeError t = RangeError {}
- data ArrayDimensionMismatch = ArrayDimensionMismatch {
- arrDimExpected :: !Int
- arrDimDelivered :: !Int
- data RowLengthMismatch = RowLengthMismatch {
- lengthExpected :: !Int
- lengthDelivered :: !Int
- data AffectedRowsMismatch = AffectedRowsMismatch {
- rowsExpected :: ![(Int, Int)]
- rowsDelivered :: !Int
Documentation
data DetailedQueryError Source #
SQL query error. Reference: description of PQresultErrorField at http://www.postgresql.org/docs/devel/static/libpq-exec.html.
Constructors
DetailedQueryError | |
Fields
|
newtype QueryError Source #
Simple SQL query error. Thrown when there is no PGresult object corresponding to query execution.
Constructors
QueryError String |
Instances
newtype HPQTypesError Source #
Internal error in this library.
Constructors
HPQTypesError String |
Instances
newtype LibPQError Source #
Internal error in libpq/libpqtypes library.
Constructors
LibPQError String |
Instances
data ConversionError Source #
Data conversion error. Since it's polymorphic in error type, it nicely reports arbitrarily nested conversion errors.
Constructors
Exception e => ConversionError | |
Fields
|
Instances
data ArrayItemError Source #
Array item error. Polymorphic in error type
for the same reason as ConversionError
.
Constructors
Exception e => ArrayItemError | |
Fields
|
Instances
data InvalidValue t Source #
"Invalid value" error for various data types.
Constructors
InvalidValue | |
Fields
|
data ArrayDimensionMismatch Source #
Array dimenstion mismatch error.
Constructors
ArrayDimensionMismatch | |
Fields
|
data RowLengthMismatch Source #
Row length mismatch error.
Constructors
RowLengthMismatch | |
Fields
|
data AffectedRowsMismatch Source #
Affected/returned rows mismatch error.
Constructors
AffectedRowsMismatch | |
Fields
|