| Copyright | (c) Joseph Canero 2016 |
|---|---|
| License | BSD-3 |
| Maintainer | jmc41493@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Database.SQLite.SimpleErrors.Types
Description
Synopsis
Documentation
data Constraint Source #
Constraint represents the kind of constraint violation returned by SQLite.
Constructors
| NotNull | |
| ForeignKey | |
| Unique | |
| Check |
Instances
| Eq Constraint Source # | |
Defined in Database.SQLite.SimpleErrors.Types | |
| Show Constraint Source # | |
Defined in Database.SQLite.SimpleErrors.Types Methods showsPrec :: Int -> Constraint -> ShowS # show :: Constraint -> String # showList :: [Constraint] -> ShowS # | |
data SQLiteResponse Source #
SQLiteResponse is a wrapper around the different kinds of errors that can be returned frm sqlite-simple. If there is a constraint error, then we will construnct a SQLConstraintError instance.
Constructors
| SQLConstraintError Constraint Text | |
| SQLFormatError FormatError | |
| SQLResultError ResultError | |
| SQLOtherError SQLError |
Instances
| Eq SQLiteResponse Source # | |
Defined in Database.SQLite.SimpleErrors.Types Methods (==) :: SQLiteResponse -> SQLiteResponse -> Bool # (/=) :: SQLiteResponse -> SQLiteResponse -> Bool # | |
| Show SQLiteResponse Source # | |
Defined in Database.SQLite.SimpleErrors.Types Methods showsPrec :: Int -> SQLiteResponse -> ShowS # show :: SQLiteResponse -> String # showList :: [SQLiteResponse] -> ShowS # | |
| Exception SQLiteResponse Source # | |
Defined in Database.SQLite.SimpleErrors.Types Methods toException :: SQLiteResponse -> SomeException # | |