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
F13296012: D11205.id26878.diff
Thu, Jun 6, 10:00 AM
F13273883: D11205.diff
Fri, May 31, 2:54 AM
F13259746: D11205.diff
Sun, May 26, 11:03 PM
F13250608: D11205.id27000.diff
Fri, May 24, 3:34 PM
F13242289: D11205.diff
Thu, May 23, 2:16 AM
F13232271: D11205.id.diff
Tue, May 21, 1:09 AM
F13220491: D11205.diff
Sun, May 19, 1:33 AM
F13202781: D11205.diff
Tue, May 14, 11:07 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.