Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for [[/eggref/5/error-utils|the CHICKEN 5 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-5.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[tags: egg]] == error-utils Error Utilities [[toc:]] == Documentation Provides variants of the {{error}} procedure. ==== errorf <procedure>(errorf [LOCATION] FORMAT [ARG ...])</procedure> 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...] [PORT (current-error-port)])</procedure> Displays a message like {{errorf}} but does not raise an error. Message is written to {{PORT}}. ==== error/no-raise <procedure>(error/no-raise [ARG ...] [PORT (current-error-port)])</procedure> Displays a message like {{error}} but does not raise an error. Message is written to {{PORT}}. ==== *error/no-raise <procedure>(*error/no-raise ARGS [PORT (current-error-port)])</procedure> A list version of {{error/no-raise}}. ==== error-format-procedure <procedure>(error-format-procedure [FORMAT]) => procedure</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 <enscript language=scheme> (require-extension error-utils) </enscript> == Author [[/users/kon-lovett|Kon Lovett]] == Version history ; 1.2.0 : Fix {{*error/no-raise}}. Add {{PORT}} argument to {{error/no-raise}}, {{*error/no-raise}}, & {{errorf/no-raise}}. ; 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.
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 2 from 0?