Skip to content
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

Make MarionetteError a private util #3495

Merged
merged 1 commit into from Nov 11, 2017

Conversation

paulfalgout
Copy link
Member

Part of the #3393 work was removing exporting of MarionetteError.
This allows for making the class more specific to internal use and can help us enforce a more consistent error API.

Along with this I changed the error names to "${ ClassName }Error" if possible to make it more valuable in determining the origin. Most of the error names were restating the error message and were never reused.
Similarly I added a url for every error. Errors will fallback to generic docs if nothing is set.

@paulfalgout paulfalgout added this to the v4.0 milestone Oct 13, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2fed105 on paulfalgout:refactor/error into bb6d8e5 on marionettejs:next.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7c7ad62 on paulfalgout:refactor/error into 1f170dc on marionettejs:next.

Part of the marionettejs#3393 work was removing exporting of `MarionetteError`.
This allows for making the class more specific to internal use and can help us enforce a more consistent error API.

Along with this I changed the error names to "${ ClassName }Error" if possible to make it more valuable in determining the origin.  Most of the error names were restating the error message and were never reused.
Similarly I added a url for every error.  Errors will fallback to generic docs if nothing is set.
@paulfalgout paulfalgout merged commit 911ffc9 into marionettejs:next Nov 11, 2017
@paulfalgout paulfalgout deleted the refactor/error branch November 11, 2017 16:11
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0601631 on paulfalgout:refactor/error into 8d4688d on marionettejs:next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants