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

Copyright(c) Joseph Canero 2016
LicenseBSD-3
Maintainerjmc41493@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Database.SQLite.SimpleErrors.Parser

Description

 

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.