mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-26 12:01:35 +03:00
Format
This commit is contained in:
parent
d6ed4e61a9
commit
cf6458fe76
@ -37,29 +37,23 @@ data CommandError
|
||||
-- |
|
||||
-- An error with a command result.
|
||||
data ResultError
|
||||
= -- |
|
||||
-- An error reported by the DB.
|
||||
-- Consists of the following: Code, message, details, hint.
|
||||
--
|
||||
-- * __Code__.
|
||||
-- The SQLSTATE code for the error.
|
||||
-- It's recommended to use
|
||||
-- <http://hackage.haskell.org/package/postgresql-error-codes the "postgresql-error-codes" package>
|
||||
-- to work with those.
|
||||
--
|
||||
-- * __Message__.
|
||||
-- The primary human-readable error message (typically one line). Always present.
|
||||
--
|
||||
-- * __Details__.
|
||||
-- An optional secondary error message carrying more detail about the problem.
|
||||
-- Might run to multiple lines.
|
||||
--
|
||||
-- * __Hint__.
|
||||
-- An optional suggestion on what to do about the problem.
|
||||
-- This is intended to differ from detail in that it offers advice (potentially inappropriate)
|
||||
-- rather than hard facts.
|
||||
-- Might run to multiple lines.
|
||||
ServerError ByteString ByteString (Maybe ByteString) (Maybe ByteString)
|
||||
= -- | An error reported by the DB.
|
||||
ServerError
|
||||
ByteString
|
||||
-- ^ __Code__. The SQLSTATE code for the error. It's recommended to use
|
||||
-- <http://hackage.haskell.org/package/postgresql-error-codes
|
||||
-- the "postgresql-error-codes" package> to work with those.
|
||||
ByteString
|
||||
-- ^ __Message__. The primary human-readable error message(typically one
|
||||
-- line). Always present.
|
||||
(Maybe ByteString)
|
||||
-- ^ __Details__. An optional secondary error message carrying more
|
||||
-- detail about the problem. Might run to multiple lines.
|
||||
(Maybe ByteString)
|
||||
-- ^ __Hint__. An optional suggestion on what to do about the problem.
|
||||
-- This is intended to differ from detail in that it offers advice
|
||||
-- (potentially inappropriate) rather than hard facts. Might run to
|
||||
-- multiple lines.
|
||||
| -- |
|
||||
-- The database returned an unexpected result.
|
||||
-- Indicates an improper statement or a schema mismatch.
|
||||
|
Loading…
Reference in New Issue
Block a user