You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTypedErrorextendsError{constructor(message: string,publiccode: number){super(message)// Set the prototype explicitly.Object.setPrototypeOf(this,TypedError.prototype)}}
Hello guys,
I've following custom error class
which I use in controller like
however, using the playground I only get following with no
Error.code
How can I achieve something like (https://codeburst.io/custom-errors-and-error-reporting-in-graphql-bbd398272aeb)
The text was updated successfully, but these errors were encountered: