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:
@@ -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 {}
|
||||
Reference in New Issue
Block a user