You are looking at historical revision 34103 of this page. It may differ significantly from its current revision.

error-utils

Error Utilities

Documentation

Provides variants of the error procedure.

errorf

[procedure] (errorf [LOCATION] FORMAT [ARG...])

Invoke error with a message built by the (error-format-procedure).

Should the argument list not match the criteria for a format argument list then the arguments are passed directly to error. The point being errorf will raise an error.

errorf/no-raise

[procedure] (errorf/no-raise [LOCATION] FORMAT [ARG...])

Displays a message just like errorf but does not raise an error.

error/no-raise

[procedure] (error/no-raise [ARG...])

Displays a message just like error but does not raise an error.

*error/no-raise

[procedure] (*error/no-raise ARGS)

A unary version of error/no-raise.

error-format-procedure

[procedure] (error-format-procedure [FORMAT]) => procedure

Parameter for the FORMAT procedure used by errorf. The default is the Unit extras format.

For I18N situations format-compiler-base format would be a better choice.

Usage

(require-extension error-utils)

Author

Kon Lovett

Version history

1.1.0
Made error-format-procedure a parameter. Add errorf/no-raise.
1.0.0
Hello (from "check-errors:1.11.0")

License

Copyright (C) 2010-2017 Kon Lovett. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.