X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fconditions.lisp;fp=sql%2Fconditions.lisp;h=d708c8a4a8c945a5d521f52b7e6cde5e71023d6c;hp=413eae61630bbcddfaed113ad6857d61684df5b9;hb=43ee802384af388413dd7f3072f7aefd6c90240d;hpb=12ad0234eb45fd831c5c905b8428868731ba3c54 diff --git a/sql/conditions.lisp b/sql/conditions.lisp index 413eae6..d708c8a 100644 --- a/sql/conditions.lisp +++ b/sql/conditions.lisp @@ -25,7 +25,10 @@ set to :error to signal an error or :ignore/nil to silently ignore the warning." (define-condition sql-condition () ()) -(define-condition sql-database-error (simple-error sql-condition) +(define-condition sql-error (simple-error) + ()) + +(define-condition sql-database-error (sql-error) ((error-id :initarg :error-id :initform nil :reader sql-error-error-id) @@ -74,7 +77,7 @@ set to :error to signal an error or :ignore/nil to silently ignore the warning." (define-condition sql-temporary-error (sql-database-error) ()) -(define-condition sql-user-error (simple-error sql-condition) +(define-condition sql-user-error (sql-error) ((message :initarg :message :initform "Unspecified error" :reader sql-user-error-message))