;;; Copyright 2009-2010 Rudolph Neeser . ;;; ;;; This file is part of CL-HEAP ;;; ;;; CL-HEAP is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation, either version 3 of the License, or ;;; (at your option) any later version. ;;; ;;; CL-HEAP is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with CL-HEAP. If not, see . ;;;---------------------------------------------------------------- (in-package #:cl-heap) ;;;---------------------------------------------------------------- (define-condition heap-error (error) ((message :initform "An error has occured while using this data structure." :initarg :message :reader heap-error-message)) (:documentation "The base condition type for all errors that should generally be thrown in the CL-HEAP package.") (:report (lambda (condition stream) (format stream (heap-error-message condition))))) (define-condition key-error (heap-error) ((message :initform "When using DECREASE-KEY, the HEAP-KEY function should always take two arguments.")))