Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
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 = forall e . Exception e => ConversionError {
- convColumn :: !Int
- convColumnName :: !String
- convRow :: !Int
- convError :: !e
- data ArrayItemError = forall e . 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.
DetailedQueryError | |
|
newtype QueryError Source
Simple SQL query error. Thrown when there is no PGresult object corresponding to query execution.
newtype HPQTypesError Source
Internal error in this library.
newtype LibPQError Source
Internal error in libpq/libpqtypes library.
data ConversionError Source
Data conversion error. Since it's polymorphic in error type, it nicely reports arbitrarily nested conversion errors.
forall e . Exception e => ConversionError | |
|
data ArrayItemError Source
Array item error. Polymorphic in error type
for the same reason as ConversionError
.
forall e . Exception e => ArrayItemError | |
|
data InvalidValue t Source
"Invalid value" error for various data types.
InvalidValue | |
|
Eq t => Eq (InvalidValue t) | |
Ord t => Ord (InvalidValue t) | |
Show t => Show (InvalidValue t) | |
(Show t, Typeable * t) => Exception (InvalidValue t) | |
Typeable (* -> *) InvalidValue |
data RangeError t Source
Range error for various data types.
Eq t => Eq (RangeError t) | |
Ord t => Ord (RangeError t) | |
Show t => Show (RangeError t) | |
(Show t, Typeable * t) => Exception (RangeError t) | |
Typeable (* -> *) RangeError |
data ArrayDimensionMismatch Source
Array dimenstion mismatch error.
ArrayDimensionMismatch | |
|
data RowLengthMismatch Source
Row length mismatch error.
RowLengthMismatch | |
|
data AffectedRowsMismatch Source
Affected/returned rows mismatch error.
AffectedRowsMismatch | |
|