parse-error
parse-error Condition Type
Class Precedence List:
parse-error, error, serious-condition, condition, t
Description:
The type parse-error consists of error conditions that are related to parsing.
See Also:
parse-namestring, reader-error
Expanded Reference: parse-error
The parse-error Type
parse-error is a condition type for errors encountered during parsing. It is a subtype of error.
(subtypep 'parse-error 'error)
=> T
=> T
Catching Parse Errors
Parse errors are typically signaled by functions like parse-integer when they encounter invalid input.
(handler-case
(parse-integer "abc")
(parse-error ()
:parse-failed))
=> :PARSE-FAILED
Reader Errors Are Parse Errors
Errors during read that involve malformed input may also be of type parse-error (specifically reader-error, which is a subtype of parse-error).
(subtypep 'reader-error 'parse-error)
=> T
=> T