Skip to content

Code does not handle HTTP errors #2

@tjdavis1111

Description

@tjdavis1111

Rather than throwing a System exception (e.g., throw new Exception("Exception while fetching all the students from the storage.");), I tried throwing an HTTP exception (e.g., return NotFound();).

The code does not handle the HTTP exception. The log entry is "An unhandled exception has occurred while executing the request..."

Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions