Previous: , Up: posix pid-files   [Index]


4.29.4 Condition object types

The following bindings are exported by the library (vicare posix pid-files).

PID file errors

Condition Type: &pid-file-error

Base condition type used to tag compound condition objects as PID file errors. It is derived from &error. It has no fields.

Function: make-pid-file-error-condition

Build and return a new condition object of type &pid-file-error.

Function: pid-file-error-condition? obj

Return #t if obj is an instance of &pid-file-error.

Already exists errors

Condition Type: &pid-file-already-exists

Condition type used to tag compound condition objects as “PID file already exists” errors: it must be used whenever, upon attempting to create a PID file, a file with the selected pathname already exists. It is derived from &pid-file-error. It has no fields.

Function: make-pid-file-already-exists-condition

Build and return a new condition object of type &pid-file-already-exists.

Function: pid-file-already-exists-condition? obj

Return #t if obj is an instance of &pid-file-already-exists.

Missing file errors

Condition Type: &pid-file-missing

Condition type used to tag compound condition objects as “PID file missing” errors: it must be used whenever the PID file does not exist but it should. It is derived from &pid-file-error. It has no fields.

Function: make-pid-file-missing-condition

Build and return a new condition object of type &pid-file-missing.

Function: pid-file-missing-condition? obj

Return #t if obj is an instance of &pid-file-missing.

Creation errors

Condition Type: &pid-file-creation

Condition type used to tag compound condition objects as “PID file creation” errors: it must be used whenever an error occurs while creating a PID file. It is derived from &pid-file-error. It has no fields.

Function: make-pid-file-creation-condition

Build and return a new condition object of type &pid-file-creation.

Function: pid-file-creation-condition? obj

Return #t if obj is an instance of &pid-file-creation.

Removal errors

Condition Type: &pid-file-removal

Condition type used to tag compound condition objects as “PID file removal” errors: it must be used whenever an error occurs while removing a PID file. It is derived from &pid-file-error. It has no fields.

Function: make-pid-file-removal-condition

Build and return a new condition object of type &pid-file-removal.

Function: pid-file-removal-condition? obj

Return #t if obj is an instance of &pid-file-removal.

Invalid contents errors

Condition Type: &pid-file-invalid-contents

Condition type used to tag compound condition objects as “PID file invalid contents” errors: it must be used whenever the PID file does not contain the PID of the current process. It is derived from &pid-file-error. It has no fields.

Function: make-pid-file-invalid-contents-condition

Build and return a new condition object of type &pid-file-invalid-contents.

Function: pid-file-invalid-contents-condition? obj

Return #t if obj is an instance of &pid-file-invalid-contents.


Previous: , Up: posix pid-files   [Index]