Skip to content

Code does not handle HTTP errors #2

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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