Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to extend the exceptions error object? #13396

Closed
ghost opened this issue May 19, 2022 · 0 comments
Closed

How to extend the exceptions error object? #13396

ghost opened this issue May 19, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented May 19, 2022

Describe the Bug

I tried to create a new class to inherit BaseException, but that didn't work, it still uses INTERNAL_SERVER_ERROR

To Reproduce

image

image

image

I tried to shift to a new way of inheritance

image

image

it works!

I don't understand why this is

Errors Shown

No response

What version of Directus are you using?

9.10.0

What version of Node.js are you using?

18.0.0

What database are you using?

Postgres 14

What browser are you using?

Chrome

How are you deploying Directus?

cli

@ghost ghost added the Bug (Potential) label May 19, 2022
@directus directus locked and limited conversation to collaborators May 19, 2022
@azrikahar azrikahar converted this issue into discussion #13398 May 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants