error-utils

Error Utilities

  1. error-utils
  2. Documentation
  3. Usage
    1. errorf
    2. errorf-print
    3. error-print
    4. *error-print
    5. error-format-procedure
    6. warning-on
  4. Author
  5. Repository
  6. Version history
  7. License

Documentation

Provides variants of the error procedure.

Usage

(import error-utils)

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-print

[procedure] (errorf-print [LOCATION] FORMAT [ARG...] [PORT (current-error-port)])

Displays a message like errorf but does not raise an error. Message is written to PORT.

error-print

[procedure] (error-print [ARG ...] [PORT (current-error-port)])

Displays a message like error but does not raise an error. Message is written to PORT.

*error-print

[procedure] (*error-print ARGS [PORT (current-error-port)])

A list version of error-print.

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 format would be a better choice.

warning-on

[procedure] (warning-on [PORT]) -> (#!rest -> void)

Returns a procedure displaying a warning message on the supplied PORT.

PORT
output-port

Author

Kon Lovett

Repository

This egg is hosted on the CHICKEN Subversion repository:

https://anonymous@code.call-cc.org/svn/chicken-eggs/release/5/error-utils

If you want to check out the source code repository of this egg and you are not familiar with Subversion, see this page.

Version history

2.1.0
Add warning-on.
2.0.2
.
2.0.1
.
2.0.0
CHICKEN 5 release.
1.2.0
Fix *error-print. Add PORT argument to error-print, *error-print, & errorf-print.
1.1.0
Made error-format-procedure a parameter. Add errorf-print.
1.0.0
Hello (from "check-errors:1.11.0")

License

Copyright (C) 2010-2022 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.