Closed
Bug 207999
Opened 22 years ago
Closed 21 years ago
Cannot derive from EcmaError class since construction parameter is private class
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
1.5R5
People
(Reporter: rknight, Assigned: norrisboyd)
Details
Attachments
(1 file)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier:
We need to derive from the EcmaError class to create our own exceptions. The
first parameter of the EcmaError constructor is the private class NativeError.
Either the NativeError class needs to be made public or the parameter changed
to a public class.
Reproducible: Always
Steps to Reproduce:
Comment 1•21 years ago
|
||
The only reason for EcmaError to require NativeError as constructor argument is
to be able to call getName/getMessage on the error object. But NativeError
objects will return the same information via generic
ScriptRuntime.getStrIdElem(object, "name"/"value"), so the patch uses that
method instead.
It is now a responsibility of EcmaError caller to supply objects with
reasonable
values for "name"/"message" properties.
Comment 2•21 years ago
|
||
I committed the fix
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•