Closed Bug 207999 Opened 22 years ago Closed 22 years ago

Cannot derive from EcmaError class since construction parameter is private class

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

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:
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.
I committed the fix
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Rubber-stamp vrfy -
Status: RESOLVED → VERIFIED
Targeting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: