sqlite-simple-errors-0.4.0.0: Wrapper around errors from sqlite-simple

Safe HaskellNone
LanguageHaskell2010

Database.SQLite.SimpleErrors.Parser

Synopsis

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.