X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fconditions.lisp;h=3ef94122cd93c884652c1d994490bea07eba3421;hp=51c06add66e442afd84b62920eee992b3368f8f5;hb=91fd65e6ca4e4d7a9c1e0f8b6d860f55b2107437;hpb=d2d49ab13c98bc7a1819a0fd3968268a5567bdc3 diff --git a/sql/conditions.lisp b/sql/conditions.lisp index 51c06ad..3ef9412 100644 --- a/sql/conditions.lisp +++ b/sql/conditions.lisp @@ -134,3 +134,11 @@ connection is no longer usable.")) "While accessing database ~A~% Warning: ~A~% has occurred." (sql-warning-database c) (sql-warning-message c))))) + +(define-condition database-too-strange (sql-user-error) + () + (:documentation "Used to signal cases where CLSQL is going to fail at + mapping your database correctly")) + +(defun signal-database-too-strange (message) + (error 'database-too-strange :message message))