Skip to content

Replace instances of custom object being thrown with proper Error objects #112

@mikelax

Description

@mikelax

Feature Overview

Is your feature request related to a problem? Please describe.
There are several locations within the project codebase that are throwing

This code search shows there are currently eight locations that should be refactored to throw Error objects, or objects created from the http-errors library that is already in use.

Describe the solution you'd like
All errors that are thrown in the server project show be derived from a proper Error object, and not generic objects. This will improve the consistency of the codebase and make troubleshooting easier.

As part of the code refactor, also double check that all error conditions and async (await) function calls are being caught and handled with try - catch blocks.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions