Page MenuHomePhabricator

Add PhutilInvalidStateException class
ClosedPublic

Authored by joshuaspence on May 12 2015, 11:19 AM.
Tags
None
Referenced Files
F13269317: D12803.diff
Wed, May 29, 6:07 AM
F13253015: D12803.diff
Sat, May 25, 2:18 AM
F13230813: D12803.diff
Mon, May 20, 11:20 PM
F13230266: D12803.id30779.diff
Mon, May 20, 10:18 PM
F13230265: D12803.id30847.diff
Mon, May 20, 10:18 PM
F13230264: D12803.id30849.diff
Mon, May 20, 10:18 PM
F13225585: D12803.id.diff
Sun, May 19, 4:01 PM
F13215414: D12803.diff
Fri, May 17, 5:09 PM
Subscribers

Details

Summary

There's a bunch of Call %s before calling %s! exceptions that can be simplified with a custom script.

Test Plan

Wrote unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add PhabricatorInvalidStateException.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

What do you think about putting this in libphutil? We probably have very few arcanist/libphutil callsites, but this doens't feel Phabricator-specific to me.

Yeah, I was considering that. Will do.

Use PhutilInvalidStateException

joshuaspence retitled this revision from Add PhabricatorInvalidStateException to Add PhutilInvalidStateException class.May 13 2015, 9:36 PM
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 13 2015, 9:51 PM
This revision was automatically updated to reflect the committed changes.