Skip to content

DD-25 - log exceptions#53

Merged
2 commits merged intodashboardfrom
DD-25-log-errors
Sep 11, 2018
Merged

DD-25 - log exceptions#53
2 commits merged intodashboardfrom
DD-25-log-errors

Conversation

@ghost
Copy link

@ghost ghost commented Sep 11, 2018

  • create exception handling attribute
  • add it to two controllers

- create exception handling attribute
- add it to two controllers
@ghost ghost requested a review from Sebyd September 11, 2018 10:48
namespace DailyReportWeb.Controllers.Api
{
[Authorize]
[ExceptionHandling]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this on all the controllers. So that we cover all exceptions. Maybe create a BaseApiController that will be inherited in all the other api controllers, and put the attribute on that.
Also put this on the mvc controllers also.

- add BaseApiController.cs and BaseMvcController.cs which will be inherited by all controllers to avoid writing the exception handling attribute for each controller
@ghost ghost merged commit 6c43d91 into dashboard Sep 11, 2018
@ghost ghost deleted the DD-25-log-errors branch September 11, 2018 11:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant