This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Source for ticket #166

cc


    

changetime

2012-10-05 12:12:56

component

WG1 - Core

description

(Email from Vincent Manis)

Problem: It's impossible to write a portable error handler that writes out the ''message'' and ''irritants'' that were passed to `error`.

This comes about because `error` creates an "implementation-defined object". I would assume that this hides the whole exception class hierarchy a WG2 implementation might provide. Since the ''message'' and ''irritants'' arguments to `error` are presumably living in this implementation-defined object, it should be simple enough to provide accessors to extract them, so that the above "portable error handler" can be written.

Suggestion: Add the following procedures:

`(error-object? `''object''`)`

Returns `#t` if ''object'' is something created by `error`, `#f` otherwise. Any constraints on type disjointness are up to the implementation.

`(error-object-message `''object''`)`

Returns the message of ''object''.

`(error-object-irritants `''object''`)`

Returns a list of the irritants of ''object''.

id

166

keywords


    

milestone


    

owner

cowan

priority

major

reporter

cowan

resolution

fixed

severity


    

status

closed

summary

Add predicate and accessors for error objects

time

2011-05-01 01:37:46

type

defect

Changes

Change at time 2012-10-05 12:12:56

author

cowan

field

comment

newvalue


    

oldvalue

3

raw-time

1349413976153810

ticket

166

time

2012-10-05 12:12:56

Change at time 2012-10-05 12:12:56

author

cowan

field

resolution

newvalue

fixed

oldvalue


    

raw-time

1349413976153810

ticket

166

time

2012-10-05 12:12:56

Change at time 2012-10-05 12:12:56

author

cowan

field

status

newvalue

closed

oldvalue

writing

raw-time

1349413976153810

ticket

166

time

2012-10-05 12:12:56

Change at time 2011-07-11 13:50:41

author

cowan

field

comment

newvalue


    

oldvalue

2

raw-time

1310367041000000

ticket

166

time

2011-07-11 13:50:41

Change at time 2011-07-11 13:50:41

author

cowan

field

owner

newvalue

cowan

oldvalue

alexshinn

raw-time

1310367041000000

ticket

166

time

2011-07-11 13:50:41

Change at time 2011-07-11 13:50:41

author

cowan

field

status

newvalue

writing

oldvalue

decided

raw-time

1310367041000000

ticket

166

time

2011-07-11 13:50:41

Change at time 2011-07-10 18:19:34

author

alexshinn

field

comment

newvalue

W voted yes.

oldvalue

1

raw-time

1310296774000000

ticket

166

time

2011-07-10 18:19:34

Change at time 2011-07-10 18:19:34

author

alexshinn

field

resolution

newvalue


    

oldvalue


    

raw-time

1310296774000000

ticket

166

time

2011-07-10 18:19:34

Change at time 2011-07-10 18:19:34

author

alexshinn

field

status

newvalue

decided

oldvalue

new

raw-time

1310296774000000

ticket

166

time

2011-07-10 18:19:34