-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<exception> classes must return their exact name. #17
Comments
<exception>
classes have to return its exact name.
Additionally, the exception classes do not have their own member methods. They're not being extended. When create an exception instance, it doesn't be the sub-type class, but the origin |
In JavaScript, it's always possible to knowing class name of a variable. Also, native error class of JS like Thus, from v2.2 update, the class Exception extends Error
{
public get name(): string
{
return this.constructor.name;
}
} |
Have implemented until v2.1.6 patch and v2.2 update. |
All the classes in the
<exception>
module are derived from the nativeError
class and they hadn't defined their own name. Thus, whenever call thename
getter,error
had been returned.At the next update, they've to return their exact name.
The text was updated successfully, but these errors were encountered: