Page MenuHomeDevCentral

PhabricatorAPI static constructors throw exceptions
ClosedPublic

Authored by dereckson on Aug 11 2016, 02:27.
Tags
None
Referenced Files
F3629951: D606.id1481.diff
Sun, Oct 6, 04:26
F3629950: D606.id1480.diff
Sun, Oct 6, 04:26
F3629577: D606.id.diff
Sun, Oct 6, 02:31
F3629492: D606.diff
Sun, Oct 6, 01:45
Unknown Object (File)
Fri, Oct 4, 21:10
Unknown Object (File)
Tue, Oct 1, 00:26
Unknown Object (File)
Mon, Sep 30, 22:25
Unknown Object (File)
Sat, Sep 28, 04:59
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.