Skip to content

refactor: remove custom error classes #4324

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

Merged
merged 3 commits into from
May 15, 2017

Conversation

crisbeto
Copy link
Member

  • Removes the custom MdError class and refactors all of the classes that extended it into functions.
  • Removes a few of the single-function *-errors.ts files and inlines their content.

Fixes #4317.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 28, 2017
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Apr 28, 2017
@mmalerba mmalerba added presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged and removed action: merge The PR is ready for merge by the caretaker labels Apr 28, 2017
@mmalerba
Copy link
Contributor

Can we deprecate instead of removing MdError? It looks like there are a number of teams inside Google extending it for their own errors.

@jelbourn
Copy link
Member

@mmalerba we should eliminate those, they shouldn't be doing that

@crisbeto
Copy link
Member Author

crisbeto commented Apr 28, 2017

Restored and marked MdError as deprecated @mmalerba.

@crisbeto
Copy link
Member Author

Beat me by a few seconds there @jelbourn.

@jelbourn
Copy link
Member

It's okay with me to leave it, then, so long as we also remove them from Google

@jelbourn
Copy link
Member

@crisbeto can you rebase?

@jelbourn
Copy link
Member

Also you can totally delete MdError now

crisbeto added 3 commits May 15, 2017 20:38
* Removes the custom `MdError` class and refactors all of the classes that extended it into functions.
* Removes a few of the single-function `*-errors.ts` files and inlines their content.

Fixes angular#4317.
@crisbeto crisbeto force-pushed the 4317/remove-custom-errors branch from 4b7c996 to 966916b Compare May 15, 2017 18:50
@crisbeto
Copy link
Member Author

Done @jelbourn. A few new MdError-s had popped up.

@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker and removed presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged labels May 15, 2017
@jelbourn jelbourn merged commit 5299677 into angular:master May 15, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove all custom Error classes
4 participants