mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
Remove ReleephRequestException
Summary: This has two use sites and no special logic. Test Plan: `grep` Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6783
This commit is contained in:
parent
7b2ab80c66
commit
d243c30190
3 changed files with 2 additions and 7 deletions
|
@ -1986,7 +1986,6 @@ phutil_register_library_map(array(
|
|||
'ReleephRequestCommentController' => 'applications/releeph/controller/request/ReleephRequestCommentController.php',
|
||||
'ReleephRequestDifferentialCreateController' => 'applications/releeph/controller/request/ReleephRequestDifferentialCreateController.php',
|
||||
'ReleephRequestEditController' => 'applications/releeph/controller/request/ReleephRequestEditController.php',
|
||||
'ReleephRequestException' => 'applications/releeph/storage/request/exception/ReleephRequestException.php',
|
||||
'ReleephRequestHeaderListView' => 'applications/releeph/view/request/header/ReleephRequestHeaderListView.php',
|
||||
'ReleephRequestHeaderView' => 'applications/releeph/view/request/header/ReleephRequestHeaderView.php',
|
||||
'ReleephRequestIntentsView' => 'applications/releeph/view/request/ReleephRequestIntentsView.php',
|
||||
|
@ -4187,7 +4186,6 @@ phutil_register_library_map(array(
|
|||
'ReleephRequestCommentController' => 'ReleephProjectController',
|
||||
'ReleephRequestDifferentialCreateController' => 'ReleephProjectController',
|
||||
'ReleephRequestEditController' => 'ReleephProjectController',
|
||||
'ReleephRequestException' => 'Exception',
|
||||
'ReleephRequestHeaderListView' => 'AphrontView',
|
||||
'ReleephRequestHeaderView' => 'AphrontView',
|
||||
'ReleephRequestIntentsView' => 'AphrontView',
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ReleephRequestDifferentialCreateController
|
|||
'arcanistProjectID = %d AND isActive = 1',
|
||||
$arc_project->getID());
|
||||
if (!$projects) {
|
||||
throw new ReleephRequestException(sprintf(
|
||||
throw new Exception(sprintf(
|
||||
"D%d belongs to the '%s' Arcanist project, ".
|
||||
"which is not part of any Releeph project!",
|
||||
$this->revision->getID(),
|
||||
|
@ -36,7 +36,7 @@ final class ReleephRequestDifferentialCreateController
|
|||
'releephProjectID IN (%Ld) AND isActive = 1',
|
||||
mpull($projects, 'getID'));
|
||||
if (!$branches) {
|
||||
throw new ReleephRequestException(sprintf(
|
||||
throw new Exception(sprintf(
|
||||
"D%d could be in the Releeph project(s) %s, ".
|
||||
"but this project / none of these projects have open branches.",
|
||||
$this->revision->getID(),
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class ReleephRequestException extends Exception {}
|
Loading…
Reference in a new issue