Formalize errors and error handling
[candle] / src / main / base.lisp
index 42518ae434797fd906ea329b3eadf571acdf4deb..871da36596bc4939a5cf924cb1c5df7b839defba 100644 (file)
@@ -2,6 +2,9 @@
 
 (defvar *candle-dir*)
 
+(define-condition candle-error (error) ((reason :initarg :reason :reader candle-error-reason)))
+(defun raise-candle-error (reason) (error (make-instance 'candle-error :reason reason)))
+
 (lame-db:defdbstruct project name src)
 
 ; Status here is: