Page MenuHomeDevCentral

PhabricatorAPI static constructors throw exceptions
ClosedPublic

Authored by dereckson on Aug 11 2016, 02:27.
Tags
None
Referenced Files
F7148340: D606.id1481.diff
Mon, Apr 21, 12:19
F7137289: D606.diff
Mon, Apr 21, 07:28
Unknown Object (File)
Mon, Apr 14, 04:36
Unknown Object (File)
Sun, Apr 13, 04:06
Unknown Object (File)
Fri, Apr 11, 11:07
Unknown Object (File)
Thu, Apr 10, 14:33
Unknown Object (File)
Thu, Apr 10, 11:53
Unknown Object (File)
Wed, Apr 9, 12:21
Subscribers
None

Details

Summary

PhabricatorAPI class offered a incoherent behavior for forInstance
and forProject methods.

This change standardizes the behavior to throw an exception on
failure in forInstance of forProject methods.

Test Plan

New unit tests

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Tests Passed
Branch
tests/PhabricatorAPI-exceptions

Event Timeline

dereckson retitled this revision from to PhabricatorAPI static constructors throw exceptions.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 11:24
This revision was automatically updated to reflect the committed changes.