mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Remove the PhortuneNotImplementedException
class
Summary: Replace `PhortuneNotImplementedException` with `PhutilMethodNotImplementedException`. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14445
This commit is contained in:
parent
321c61a853
commit
bb9b25a7ba
3 changed files with 8 additions and 22 deletions
|
@ -3428,7 +3428,6 @@ phutil_register_library_map(array(
|
|||
'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php',
|
||||
'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php',
|
||||
'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php',
|
||||
'PhortuneNotImplementedException' => 'applications/phortune/exception/PhortuneNotImplementedException.php',
|
||||
'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php',
|
||||
'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php',
|
||||
'PhortunePaymentMethod' => 'applications/phortune/storage/PhortunePaymentMethod.php',
|
||||
|
@ -7771,7 +7770,6 @@ phutil_register_library_map(array(
|
|||
'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
|
||||
'PhortuneMerchantViewController' => 'PhortuneMerchantController',
|
||||
'PhortuneMonthYearExpiryControl' => 'AphrontFormControl',
|
||||
'PhortuneNotImplementedException' => 'Exception',
|
||||
'PhortuneOrderTableView' => 'AphrontView',
|
||||
'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider',
|
||||
'PhortunePaymentMethod' => array(
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class PhortuneNotImplementedException extends Exception {
|
||||
|
||||
public function __construct(PhortunePaymentProvider $provider) {
|
||||
return parent::__construct(
|
||||
pht(
|
||||
"Provider '%s' does not implement this method.",
|
||||
get_class($provider)));
|
||||
}
|
||||
|
||||
}
|
|
@ -109,7 +109,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
abstract public function canRunConfigurationTest();
|
||||
|
||||
public function runConfigurationTest() {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -169,7 +169,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
* @task addmethod
|
||||
*/
|
||||
public function translateCreatePaymentMethodErrorCode($error_code) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -177,7 +177,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
* @task addmethod
|
||||
*/
|
||||
public function getCreatePaymentMethodErrorMessage($error_code) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -185,7 +185,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
* @task addmethod
|
||||
*/
|
||||
public function validateCreatePaymentMethodToken(array $token) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -196,7 +196,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
AphrontRequest $request,
|
||||
PhortunePaymentMethod $method,
|
||||
array $token) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -206,12 +206,12 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
public function renderCreatePaymentMethodForm(
|
||||
AphrontRequest $request,
|
||||
array $errors) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
public function getDefaultPaymentMethodDisplayName(
|
||||
PhortunePaymentMethod $method) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -290,7 +290,7 @@ abstract class PhortunePaymentProvider extends Phobject {
|
|||
public function processControllerRequest(
|
||||
PhortuneProviderActionController $controller,
|
||||
AphrontRequest $request) {
|
||||
throw new PhortuneNotImplementedException($this);
|
||||
throw new PhutilMethodNotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue