X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=base%2Fconditions.lisp;h=25d4623605396b0bdbd8b75e39b53f7b9d24e093;hp=a84f6546d0c95c2f815f0917154d5e2ddb889631;hb=9bbed78051e80e6ab76ae47834136035602bbbf1;hpb=d0f147d0e7d942b379bd7cd472f26b00c33916bc diff --git a/base/conditions.lisp b/base/conditions.lisp index a84f654..25d4623 100644 --- a/base/conditions.lisp +++ b/base/conditions.lisp @@ -18,7 +18,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(in-package #:clsql-base-sys) +(in-package #:clsql-base) ;;; Conditions (define-condition clsql-condition () @@ -36,6 +36,12 @@ (define-condition clsql-simple-warning (simple-condition clsql-warning) ()) +(define-condition clsql-generic-error (clsql-error) + ((message :initarg :message + :reader clsql-generic-error-message)) + (:report (lambda (c stream) + (format stream (clsql-generic-error-message c))))) + (define-condition clsql-invalid-spec-error (clsql-error) ((connection-spec :initarg :connection-spec :reader clsql-invalid-spec-error-connection-spec)