Skip to main content

cell-error

cell-error Condition Type

Class Precedence List:

cell-error, error, serious-condition, condition, t

Description:

The type cell-error consists of error conditions that occur during a location access. The name of the offending cell is initialized by the :name initialization argument to make-condition, and is accessed by the function cell-error-name.

See Also:

cell-error-name

Expanded Reference: cell-error

The cell-error Type

cell-error is the base type for errors that occur when accessing a "cell" (a named location such as a variable binding, function definition, or slot). Its subtypes include unbound-variable, undefined-function, and unbound-slot.

(subtypep 'cell-error 'error)

=> T
=> T

Subtypes of cell-error

(subtypep 'unbound-variable 'cell-error)

=> T
=> T
(subtypep 'undefined-function 'cell-error)

=> T
=> T

Catching Cell Errors

(handler-case
(symbol-value (gensym))
(cell-error (c)
(format nil "Cell error on: ~S" (cell-error-name c))))

=> "Cell error on: #:Gxxxx"