Changeset 35327 in project


Ignore:
Timestamp:
03/24/18 20:19:25 (5 weeks ago)
Author:
kon
Message:

better param names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/condition-utils

    r35244 r35327  
    2323{{CHN}} is the result of {{(get-call-chain)}}, or {{#f}}.
    2424
    25 {{COND}} is a {{property-condition}}.
    26 
    27 {{COND-EXPR}} is a:
    28 
    29 ; {{COND}} : a condition object
     25{{CONDITION}} is a {{property-condition}}.
     26
     27{{CONDITION-SPEC}} is a:
     28
     29; {{CONDITION}} : a condition object
    3030; {{symbol}} : {{(make-property-condition <symbol>)}}
    3131; {{list}} : {{(apply make-property-condition <list>)}}
     
    5959=== make-exn-condition+
    6060
    61 <procedure>(make-exn-condition+ LOC MSG ARGS [CHN] [COND-EXPR...]) --> property-condition</procedure>
    62 
    63 Returns a {{composite-condition}} {{exn COND-EXPR...}}.
     61<procedure>(make-exn-condition+ LOC MSG ARGS [CHN] [CONDITION-SPEC...]) --> property-condition</procedure>
     62
     63Returns a {{composite-condition}} {{exn CONDITION-SPEC...}}.
    6464
    6565When one-of {{LOC}}, {{MSG}}, or {{ARGS}} is without a useful value in the
     
    7171=== make-condition+
    7272
    73 <procedure>(make-condition+ COND-EXPR...) --> property-condition</procedure>
    74 
    75 Returns a {{composite-condition}} {{COND-EXPR...}}.
     73<procedure>(make-condition+ CONDITION-SPEC...) --> property-condition</procedure>
     74
     75Returns a {{composite-condition}} {{CONDITION-SPEC...}}.
    7676
    7777=== make-condition-predicate
     
    9090=== condition-irritants
    9191
    92 <procedure>(condition-irritants COND) --> list</procedure>
    93 
    94 Returns a list of the condition properties for the condition {{COND}}. The form
     92<procedure>(condition-irritants CONDITION) --> list</procedure>
     93
     94Returns a list of the condition properties for the condition {{CONDITION}}. The form
    9595of the list, alist vs. plist, is dependent on the result of the system
    9696procedure {{condition->list}}.
     
    100100=== write-exn-condition
    101101
    102 <procedure>(write-exn-condition COND [PORT (current-output-port) [HEADER "Error" [CHAIN-HEADER "\n\tCall history:\n"]]])</procedure>
     102<procedure>(write-exn-condition CONDITION [PORT (current-output-port) [HEADER "Error" [CHAIN-HEADER "\n\tCall history:\n"]]])</procedure>
    103103
    104104Produces on {{PORT}} the form:
     
    115115=== write-condition
    116116
    117 <procedure>(write-condition COND [PORT (current-output-port) [HEADER "Error"]])</procedure>
     117<procedure>(write-condition CONDITION [PORT (current-output-port) [HEADER "Error"]])</procedure>
    118118
    119119Produces on {{PORT}} the form:
     
    148148===== exn-condition?
    149149
    150 <procedure>(exn-condition? COND) --> boolean</procedure>
     150<procedure>(exn-condition? CONDITION) --> boolean</procedure>
    151151
    152152===== arity-condition?
    153153
    154 <procedure>(arity-condition? COND) --> boolean</procedure>
     154<procedure>(arity-condition? CONDITION) --> boolean</procedure>
    155155
    156156===== type-condition?
    157157
    158 <procedure>(type-condition? COND) --> boolean</procedure>
     158<procedure>(type-condition? CONDITION) --> boolean</procedure>
    159159
    160160===== arithmetic-condition?
    161161
    162 <procedure>(arithmetic-condition? COND) --> boolean</procedure>
     162<procedure>(arithmetic-condition? CONDITION) --> boolean</procedure>
    163163
    164164===== i/o-condition?
    165165
    166 <procedure>(i/o-condition? COND) --> boolean</procedure>
     166<procedure>(i/o-condition? CONDITION) --> boolean</procedure>
    167167
    168168===== file-condition?
    169169
    170 <procedure>(file-condition? COND) --> boolean</procedure>
     170<procedure>(file-condition? CONDITION) --> boolean</procedure>
    171171
    172172===== network-condition?
    173173
    174 <procedure>(network-condition? COND) --> boolean</procedure>
     174<procedure>(network-condition? CONDITION) --> boolean</procedure>
    175175
    176176===== network-timeout-condition?
    177177
    178 <procedure>(network-timeout-condition? COND) --> boolean</procedure>
     178<procedure>(network-timeout-condition? CONDITION) --> boolean</procedure>
    179179
    180180===== bounds-condition?
    181181
    182 <procedure>(bounds-condition? COND) --> boolean</procedure>
     182<procedure>(bounds-condition? CONDITION) --> boolean</procedure>
    183183
    184184===== runtime-condition?
    185185
    186 <procedure>(runtime-condition? COND) --> boolean</procedure>
     186<procedure>(runtime-condition? CONDITION) --> boolean</procedure>
    187187
    188188===== runtime-limit-condition?
    189189
    190 <procedure>(runtime-limit-condition? COND) --> boolean</procedure>
     190<procedure>(runtime-limit-condition? CONDITION) --> boolean</procedure>
    191191
    192192===== runtime-cycle-condition?
    193193
    194 <procedure>(runtime-cycle-condition? COND) --> boolean</procedure>
     194<procedure>(runtime-cycle-condition? CONDITION) --> boolean</procedure>
    195195
    196196===== match-condition?
    197197
    198 <procedure>(match-condition? COND) --> boolean</procedure>
     198<procedure>(match-condition? CONDITION) --> boolean</procedure>
    199199
    200200===== syntax-condition?
    201201
    202 <procedure>(syntax-condition? COND) --> boolean</procedure>
     202<procedure>(syntax-condition? CONDITION) --> boolean</procedure>
    203203
    204204===== process-condition?
    205205
    206 <procedure>(process-condition? COND) --> boolean</procedure>
     206<procedure>(process-condition? CONDITION) --> boolean</procedure>
    207207
    208208===== access-condition?
    209209
    210 <procedure>(access-condition? COND) --> boolean</procedure>
     210<procedure>(access-condition? CONDITION) --> boolean</procedure>
    211211
    212212===== domain-condition?
    213213
    214 <procedure>(domain-condition? COND) --> boolean</procedure>
     214<procedure>(domain-condition? CONDITION) --> boolean</procedure>
    215215
    216216===== memory-condition?
    217217
    218 <procedure>(memory-condition? COND) --> boolean</procedure>
     218<procedure>(memory-condition? CONDITION) --> boolean</procedure>
    219219
    220220==== Condition Property Accessors
     
    222222===== exn-location
    223223
    224 <procedure>(exn-location COND) --> *</procedure>
     224<procedure>(exn-location CONDITION) --> *</procedure>
    225225
    226226===== exn-message
    227227
    228 <procedure>(exn-message COND) --> *</procedure>
     228<procedure>(exn-message CONDITION) --> *</procedure>
    229229
    230230===== exn-arguments
    231231
    232 <procedure>(exn-arguments COND) --> *</procedure>
     232<procedure>(exn-arguments CONDITION) --> *</procedure>
    233233
    234234===== exn-call-chain
    235235
    236 <procedure>(exn-call-chain COND) --> *</procedure>
     236<procedure>(exn-call-chain CONDITION) --> *</procedure>
    237237
    238238
     
    249249===== http-condition?
    250250
    251 <procedure>(http-condition? COND) --> boolean</procedure>
     251<procedure>(http-condition? CONDITION) --> boolean</procedure>
    252252
    253253===== client-error-condition?
    254254
    255 <procedure>(client-error-condition? COND) --> boolean</procedure>
     255<procedure>(client-error-condition? CONDITION) --> boolean</procedure>
    256256
    257257===== server-error-condition?
    258258
    259 <procedure>(server-error-condition? COND) --> boolean</procedure>
     259<procedure>(server-error-condition? CONDITION) --> boolean</procedure>
    260260
    261261===== unexpected-server-response-condition?
    262262
    263 <procedure>(unexpected-server-response-condition? COND) --> boolean</procedure>
     263<procedure>(unexpected-server-response-condition? CONDITION) --> boolean</procedure>
    264264
    265265===== redirect-depth-exceeded-condition?
    266266
    267 <procedure>(redirect-depth-exceeded-condition? COND) --> boolean</procedure>
     267<procedure>(redirect-depth-exceeded-condition? CONDITION) --> boolean</procedure>
    268268
    269269===== unsupported-uri-scheme-condition?
    270270
    271 <procedure>(unsupported-uri-scheme-condition? COND) --> boolean</procedure>
     271<procedure>(unsupported-uri-scheme-condition? CONDITION) --> boolean</procedure>
    272272
    273273===== unknown-authtype-condition?
    274274
    275 <procedure>(unknown-authtype-condition? COND) --> boolean</procedure>
     275<procedure>(unknown-authtype-condition? CONDITION) --> boolean</procedure>
    276276
    277277==== Condition Property Accessors
     
    279279===== client-error-response
    280280
    281 <procedure>(client-error-response COND) --> *</procedure>
     281<procedure>(client-error-response CONDITION) --> *</procedure>
    282282
    283283===== client-error-body
    284284
    285 <procedure>(client-error-body COND) --> *</procedure>
     285<procedure>(client-error-body CONDITION) --> *</procedure>
    286286
    287287===== server-error-response
    288288
    289 <procedure>(server-error-response COND) --> *</procedure>
     289<procedure>(server-error-response CONDITION) --> *</procedure>
    290290
    291291===== server-error-body
    292292
    293 <procedure>(server-error-body COND) --> *</procedure>
     293<procedure>(server-error-body CONDITION) --> *</procedure>
    294294
    295295===== unexpected-server-response-response
    296296
    297 <procedure>(unexpected-server-response-response COND) --> *</procedure>
     297<procedure>(unexpected-server-response-response CONDITION) --> *</procedure>
    298298
    299299===== unexpected-server-response-body
    300300
    301 <procedure>(unexpected-server-response-body COND) --> *</procedure>
     301<procedure>(unexpected-server-response-body CONDITION) --> *</procedure>
    302302
    303303===== redirect-depth-exceeded-uri
    304304
    305 <procedure>(redirect-depth-exceeded-uri COND) --> *</procedure>
     305<procedure>(redirect-depth-exceeded-uri CONDITION) --> *</procedure>
    306306
    307307===== formdata-error-condition?
    308308
    309 <procedure>(formdata-error-condition? COND) --> boolean</procedure>
     309<procedure>(formdata-error-condition? CONDITION) --> boolean</procedure>
    310310
    311311===== unsupported-uri-scheme-uri-scheme
    312312
    313 <procedure>(unsupported-uri-scheme-uri-scheme COND) --> *</procedure>
     313<procedure>(unsupported-uri-scheme-uri-scheme CONDITION) --> *</procedure>
    314314
    315315===== unsupported-uri-scheme-request-uri
    316316
    317 <procedure>(unsupported-uri-scheme-request-uri COND) --> *</procedure>
     317<procedure>(unsupported-uri-scheme-request-uri CONDITION) --> *</procedure>
    318318
    319319===== unknown-authtype-authtype
    320320
    321 <procedure>(unknown-authtype-authtype COND) --> *</procedure>
     321<procedure>(unknown-authtype-authtype CONDITION) --> *</procedure>
    322322
    323323
     
    334334===== http-condition?
    335335
    336 <procedure>(http-condition? COND) --> boolean</procedure>
     336<procedure>(http-condition? CONDITION) --> boolean</procedure>
    337337
    338338===== urlencoded-request-data-limit-exceeded?
    339339
    340 <procedure>(urlencoded-request-data-limit-exceeded? COND) --> boolean</procedure>
     340<procedure>(urlencoded-request-data-limit-exceeded? CONDITION) --> boolean</procedure>
    341341
    342342===== line-limit-exceeded?
    343343
    344 <procedure>(line-limit-exceeded? COND) --> boolean</procedure>
     344<procedure>(line-limit-exceeded? CONDITION) --> boolean</procedure>
    345345
    346346===== header-error?
    347347
    348 <procedure>(header-error? COND) --> boolean</procedure>
     348<procedure>(header-error? CONDITION) --> boolean</procedure>
    349349
    350350===== header-limit-exceeded?
    351351
    352 <procedure>(header-limit-exceeded? COND) --> boolean</procedure>
     352<procedure>(header-limit-exceeded? CONDITION) --> boolean</procedure>
    353353
    354354===== unknown-protocol-line?
    355355
    356 <procedure>(unknown-protocol-line? COND) --> boolean</procedure>
     356<procedure>(unknown-protocol-line? CONDITION) --> boolean</procedure>
    357357
    358358===== unknown-protocol?
    359359
    360 <procedure>(unknown-protocol? COND) --> boolean</procedure>
     360<procedure>(unknown-protocol? CONDITION) --> boolean</procedure>
    361361
    362362===== unknown-code?
    363363
    364 <procedure>(unknown-code? COND) --> boolean</procedure>
     364<procedure>(unknown-code? CONDITION) --> boolean</procedure>
    365365
    366366===== unknown-status?
    367367
    368 <procedure>(unknown-status? COND) --> boolean</procedure>
     368<procedure>(unknown-status? CONDITION) --> boolean</procedure>
    369369
    370370===== rfc1123-subparser?
    371371
    372 <procedure>(rfc1123-subparser? COND) --> boolean</procedure>
     372<procedure>(rfc1123-subparser? CONDITION) --> boolean</procedure>
    373373
    374374===== rfc850-subparser?
    375375
    376 <procedure>(rfc850-subparser? COND) --> boolean</procedure>
     376<procedure>(rfc850-subparser? CONDITION) --> boolean</procedure>
    377377
    378378===== asctime-subparser?
    379379
    380 <procedure>(asctime-subparser? COND) --> boolean</procedure>
     380<procedure>(asctime-subparser? CONDITION) --> boolean</procedure>
    381381
    382382===== http-date-subparser?
    383383
    384 <procedure>(http-date-subparser? COND) --> boolean</procedure>
     384<procedure>(http-date-subparser? CONDITION) --> boolean</procedure>
    385385
    386386===== unencoded-header?
    387387
    388 <procedure>(unencoded-header? COND) --> boolean</procedure>
     388<procedure>(unencoded-header? CONDITION) --> boolean</procedure>
    389389
    390390===== username-with-colon?
    391391
    392 <procedure>(username-with-colon? COND) --> boolean</procedure>
     392<procedure>(username-with-colon? CONDITION) --> boolean</procedure>
    393393
    394394==== Condition Property Accessors
     
    396396===== urlencoded-request-data-limit-exceeded-contents
    397397
    398 <procedure>(urlencoded-request-data-limit-exceeded-contents COND) --> *</procedure>
     398<procedure>(urlencoded-request-data-limit-exceeded-contents CONDITION) --> *</procedure>
    399399
    400400===== urlencoded-request-data-limit-exceeded-limit
    401401
    402 <procedure>(urlencoded-request-data-limit-exceeded-limit COND) --> *</procedure>
     402<procedure>(urlencoded-request-data-limit-exceeded-limit CONDITION) --> *</procedure>
    403403
    404404===== line-limit-exceeded-contents
    405405
    406 <procedure>(line-limit-exceeded-contents COND) --> *</procedure>
     406<procedure>(line-limit-exceeded-contents CONDITION) --> *</procedure>
    407407
    408408===== line-limit-exceeded-limit
    409409
    410 <procedure>(line-limit-exceeded-limit COND) --> *</procedure>
     410<procedure>(line-limit-exceeded-limit CONDITION) --> *</procedure>
    411411
    412412===== header-error-contents
    413413
    414 <procedure>(header-error-contents COND) --> *</procedure>
     414<procedure>(header-error-contents CONDITION) --> *</procedure>
    415415
    416416===== header-limit-exceeded-contents
    417417
    418 <procedure>(header-limit-exceeded-contents COND) --> *</procedure>
     418<procedure>(header-limit-exceeded-contents CONDITION) --> *</procedure>
    419419
    420420===== header-limit-exceeded-limit
    421421
    422 <procedure>(header-limit-exceeded-limit COND) --> *</procedure>
     422<procedure>(header-limit-exceeded-limit CONDITION) --> *</procedure>
    423423
    424424===== unknown-protocol-line-line
    425425
    426 <procedure>(unknown-protocol-line-line COND) --> *</procedure>
     426<procedure>(unknown-protocol-line-line CONDITION) --> *</procedure>
    427427
    428428===== unknown-protocol-major
    429429
    430 <procedure>(unknown-protocol-major COND) --> *</procedure>
     430<procedure>(unknown-protocol-major CONDITION) --> *</procedure>
    431431
    432432===== unknown-protocol-minor
    433433
    434 <procedure>(unknown-protocol-minor COND) --> *</procedure>
     434<procedure>(unknown-protocol-minor CONDITION) --> *</procedure>
    435435
    436436===== unknown-code-code
    437437
    438 <procedure>(unknown-code-code COND) --> *</procedure>
     438<procedure>(unknown-code-code CONDITION) --> *</procedure>
    439439
    440440===== unknown-status-status
    441441
    442 <procedure>(unknown-status-status COND) --> *</procedure>
     442<procedure>(unknown-status-status CONDITION) --> *</procedure>
    443443
    444444===== rfc1123-subparser-value?
    445445
    446 <procedure>(rfc1123-subparser-value? COND) --> boolean</procedure>
     446<procedure>(rfc1123-subparser-value? CONDITION) --> boolean</procedure>
    447447
    448448===== rfc850-subparser-value?
    449449
    450 <procedure>(rfc850-subparser-value? COND) --> boolean</procedure>
     450<procedure>(rfc850-subparser-value? CONDITION) --> boolean</procedure>
    451451
    452452===== asctime-subparser-value?
    453453
    454 <procedure>(asctime-subparser-value? COND) --> boolean</procedure>
     454<procedure>(asctime-subparser-value? CONDITION) --> boolean</procedure>
    455455
    456456===== http-date-subparser-value?
    457457
    458 <procedure>(http-date-subparser-value? COND) --> boolean</procedure>
     458<procedure>(http-date-subparser-value? CONDITION) --> boolean</procedure>
    459459
    460460===== unencoded-header-value?
    461461
    462 <procedure>(unencoded-header-value? COND) --> boolean</procedure>
     462<procedure>(unencoded-header-value? CONDITION) --> boolean</procedure>
    463463
    464464===== username-with-colon-value?
    465465
    466 <procedure>(username-with-colon-value? COND) --> boolean</procedure>
     466<procedure>(username-with-colon-value? CONDITION) --> boolean</procedure>
    467467
    468468
Note: See TracChangeset for help on using the changeset viewer.