Page MenuHomePhabricator

Create a custom exception class for missing linter dependencies
ClosedPublic

Authored by joshuaspence on Jan 4 2015, 10:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 10:14 PM
Unknown Object (File)
Sun, Apr 21, 3:50 PM
Unknown Object (File)
Wed, Apr 17, 2:01 PM
Unknown Object (File)
Mar 25 2024, 11:21 AM
Unknown Object (File)
Mar 25 2024, 11:20 AM
Unknown Object (File)
Mar 17 2024, 11:54 PM
Unknown Object (File)
Feb 7 2024, 8:45 PM
Unknown Object (File)
Jan 17 2024, 7:01 PM

Details

Summary

I feel that we are abusing ArcanistUsageException. Throw a more tailed exception instead. Depends on D11197.

Test Plan

arc lint, I guess.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Create a custom exception class for missing linter dependencies.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

Agreed that these cases feel overbroad for UsageException.

This revision is now accepted and ready to land.Jan 4 2015, 4:40 PM

Thoughts on not extending from ArcanistUsageException?

Oh, yeah, I probably wouldn't extend.

Any exception could technically be considered the result of someone misusing something, but I think that distinction becomes meaningless long before we get into a major configuration issue like missing software dependencies.

This revision was automatically updated to reflect the committed changes.