Page MenuHomePhabricator

Add PhutilInvalidStateException class
ClosedPublic

Authored by joshuaspence on May 12 2015, 11:19 AM.
Tags
None
Referenced Files
F19909206: D12803.diff
Wed, Apr 1, 11:48 PM
F19896177: D12803.id.diff
Sun, Mar 29, 2:06 AM
F19809360: D12803.id.diff
Mar 3 2026, 9:11 AM
F19799680: D12803.id30852.diff
Feb 28 2026, 2:04 AM
F19673313: D12803.id30847.diff
Feb 8 2026, 5:36 AM
F19514350: D12803.id30849.diff
Jan 14 2026, 1:08 AM
F19509849: D12803.id30847.diff
Jan 11 2026, 1:57 AM
F19509827: D12803.diff
Jan 11 2026, 1:32 AM
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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5953
Build 5973: [Placeholder Plan] Wait for 30 Seconds

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.