Page MenuHomeDevCentral

PhabricatorAPI static constructors throw exceptions
ClosedPublic

Authored by dereckson on Aug 11 2016, 02:27.
Tags
None
Referenced Files
F9439777: D606.diff
Wed, Jun 4, 12:20
Unknown Object (File)
Tue, Jun 3, 08:03
Unknown Object (File)
Sat, May 31, 03:59
Unknown Object (File)
Thu, May 22, 12:30
Unknown Object (File)
Wed, May 14, 18:54
Unknown Object (File)
Sun, May 11, 10:33
Unknown Object (File)
Sat, May 10, 14:29
Unknown Object (File)
Wed, May 7, 18:35
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 Not Applicable
Unit
Tests Not Applicable

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.