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
F19073455: D9094.id.diff
Mon, Dec 1, 1:59 AM
F19066499: D9094.diff
Sun, Nov 30, 5:25 AM
F19056102: D9094.id21620.diff
Fri, Nov 28, 6:58 PM
F19056037: D9094.id21620.diff
Fri, Nov 28, 6:54 PM
F18874109: D9094.diff
Nov 5 2025, 1:06 PM
F18851540: D9094.id.diff
Oct 31 2025, 2:04 AM
F18848587: D9094.diff
Oct 30 2025, 5:26 AM
F18808299: D9094.id21633.diff
Oct 19 2025, 5:52 AM
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).