Re: Desperately seeking an error
Re: Desperately seeking an error
- Subject: Re: Desperately seeking an error
- From: John W Baxter <email@hidden>
- Date: Sun, 19 Aug 2001 21:35:50 -0700
At 23:44 -0400 8/19/01, Paul Skinner wrote:
>
I understand that all of these pieces of data may be generated by an
>
error. Can anyone tell me of an instance where all of these pieces of data
>
are not generated by an error?
>
I'm trying to test this with an error that produces only some of the
>
values, but I haven't found an error that fails to give me all of them.
I don't know what would happen if you wrote a Scripting Addition which only
provides values for some of the items...one of Apple's behaves sensibly
(usual line wrap warning):
set handlerName to "run"
try
date string of 5
on error errorMessage number errorNumber partial result errorResult from
errorFrom to ErrorTo
set theResults to {handlerName:handlerName, errorMessage:errorMessage,
errorNumber:errorNumber, errorResult:errorResult, errorFrom:errorFrom,
ErrorTo:ErrorTo}
end try
builds the record:
{
handlerName:"run",
errorMessage:"Can't get date string of 5.",
errorNumber:-1728,
errorResult:{},
errorFrom:date string of 5,
ErrorTo:{}
}
I never tested the ones I wrote to see what would happen with the missing
items (and now I don't recall what items were missing). I suspect you'll
always see *some* value...perhaps the empty lists as seen above--unless
they are empty records...AEPrint renders those as [].
--John
--
John Baxter email@hidden Port Ludlow, WA, USA