You are looking at historical revision 19761 of this page. It may differ significantly from its current revision.
SRFI 12 Condition Utilities
Convenience API for constructing common Chicken exception conditions, predicates, and accessors.
LOC is a symbol, or #f.
MSG is a string, or #f.
ARGS is a list, or #f.
COND is a:
- (make-property-condition <symbol>)
- (apply make-property-condition <list>)
KIND is a symbol.
PROP is a symbol.
make-exn-condition[procedure] (make-exn-condition [LOC [MSG [ARGS]]]) => property-condition
Returns an exn property-condition with optional location, message and arguments property values.
Will always include location, message and arguments properties in the property-condition.
make-exn-condition+[procedure] (make-exn-condition+ LOC MSG ARGS [COND...]) => property-condition
Returns a composite-condition exn COND....
When one-of LOC, MSG, or ARGS is without a useful value in the error context be sure to use #f as the actual argument.
make-condition+[procedure] (make-condition+ COND...) => property-condition
Returns a composite-condition COND....
condition-predicate*[procedure] (condition-predicate* KIND) => (procedure (*) boolean)
Returns a "memioized" condition-predicate for KIND.
make-condition-predicate[syntax] (make-condition-predicate KIND...) => (procedure (*) boolean)
Returns a condition-predicate for KIND....
condition-property-accessor*[procedure] (condition-property-accessor* KIND PROP [DEFAULT]) => (procedure (*) boolean)
Returns a "memioized" condition-property-accessor for KIND.
make-condition-property-accessor[syntax] (make-condition-property-accessor KIND PROP [DEFAULT]) => (procedure (*) boolean)
Returns a condition-property-accessor for KIND PROP.
- Hello (from "check-errors:1.11.0")
Copyright (C) 2010 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.