Page MenuHomePhabricator

Throw a more tailored exception after failing to resolve a ref
ClosedPublic

Authored by epriestley on May 13 2014, 12:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 7:18 AM
Unknown Object (File)
Fri, May 3, 7:35 AM
Unknown Object (File)
Wed, Apr 24, 10:44 PM
Unknown Object (File)
Wed, Apr 17, 7:21 AM
Unknown Object (File)
Thu, Apr 11, 9:56 AM
Unknown Object (File)
Mar 20 2024, 11:18 PM
Unknown Object (File)
Feb 9 2024, 8:49 AM
Unknown Object (File)
Feb 5 2024, 9:03 PM
Subscribers

Details

Summary

Ref T2683. Throw a more tailored exception to allow callers to distinguish between bad refs (which are expected, if users try to visit garbage branches) and other types of errors.

Test Plan

Tried to view branch "alksndfklansdf". Viewed branch "master".

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Throw a more tailored exception after failing to resolve a ref.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
btrahan added inline comments.
src/applications/diffusion/exception/DiffusionRefNotFoundException.php
8

i'd probably make this a member variable to avoid messing with the constructor signature. pretty whatevs.

This revision is now accepted and ready to land.May 13 2014, 4:39 PM
epriestley edited edge metadata.
  • Move the ref to a property instead.
epriestley updated this revision to Diff 21633.

Closed by commit rPb80b851600cb (authored by @epriestley).