Copyright | (c) Joseph Canero 2016 |
---|---|
License | BSD-3 |
Maintainer | jmc41493@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
receiveSQLError :: SQLError -> SQLiteResponse Source #
Given a SQL error, converts it into a SQLiteResponse. If the error is not an ErrorConstraint, it is essentially just wrapped in SQLOtherError. If the error is an ErrorConstraint error, try to parse the error as one of the following kinds of constraint violations: Foreign Key, Not Null, Unique, or Check.