X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=base%2Fconditions.lisp;h=138aa58fac6ddbdde4182d8a30f7b8b89ac79f08;hp=7fc778101abfa5bf01aa3f0feef7097f7eae9c4a;hb=ce0e343835a040406678dff74a62d1b0cb56f317;hpb=edd1963395a5b5e5f91ef975fcd329975ae367e2 diff --git a/base/conditions.lisp b/base/conditions.lisp index 7fc7781..138aa58 100644 --- a/base/conditions.lisp +++ b/base/conditions.lisp @@ -2,7 +2,7 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: conditions.cl +;;;; Name: conditions.lisp ;;;; Purpose: Error conditions for high-level SQL interface ;;;; Programmers: Kevin M. Rosenberg based on ;;;; Original code by Pierre R. Mai @@ -10,7 +10,7 @@ ;;;; ;;;; $Id$ ;;;; -;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software @@ -18,8 +18,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :clsql-base-sys) +(in-package #:clsql-base-sys) ;;; Conditions (define-condition clsql-condition () @@ -157,6 +156,9 @@ and signal an clsql-invalid-spec-error if they don't match." 'clsql-nodb-error :database database)) +(defun signal-no-database-error () + (cerror "Ignore this error and return nil." + 'clsql-nodb-error)) ;; for USQL support @@ -179,4 +181,4 @@ and signal an clsql-invalid-spec-error if they don't match." :reader clsql-sql-syntax-error-reason)) (:report (lambda (c stream) (format stream "Invalid SQL syntax: ~A" - (clsql-sql-syntax-error-reason c))))) \ No newline at end of file + (clsql-sql-syntax-error-reason c)))))