1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +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:
Joshua Spence 2015-11-12 06:33:38 +11:00
parent 321c61a853
commit bb9b25a7ba
3 changed files with 8 additions and 22 deletions

View file

@ -3428,7 +3428,6 @@ phutil_register_library_map(array(
'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php', 'PhortuneMerchantTransactionQuery' => 'applications/phortune/query/PhortuneMerchantTransactionQuery.php',
'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php', 'PhortuneMerchantViewController' => 'applications/phortune/controller/PhortuneMerchantViewController.php',
'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php', 'PhortuneMonthYearExpiryControl' => 'applications/phortune/control/PhortuneMonthYearExpiryControl.php',
'PhortuneNotImplementedException' => 'applications/phortune/exception/PhortuneNotImplementedException.php',
'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php', 'PhortuneOrderTableView' => 'applications/phortune/view/PhortuneOrderTableView.php',
'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php', 'PhortunePayPalPaymentProvider' => 'applications/phortune/provider/PhortunePayPalPaymentProvider.php',
'PhortunePaymentMethod' => 'applications/phortune/storage/PhortunePaymentMethod.php', 'PhortunePaymentMethod' => 'applications/phortune/storage/PhortunePaymentMethod.php',
@ -7771,7 +7770,6 @@ phutil_register_library_map(array(
'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PhortuneMerchantViewController' => 'PhortuneMerchantController', 'PhortuneMerchantViewController' => 'PhortuneMerchantController',
'PhortuneMonthYearExpiryControl' => 'AphrontFormControl', 'PhortuneMonthYearExpiryControl' => 'AphrontFormControl',
'PhortuneNotImplementedException' => 'Exception',
'PhortuneOrderTableView' => 'AphrontView', 'PhortuneOrderTableView' => 'AphrontView',
'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider', 'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider',
'PhortunePaymentMethod' => array( 'PhortunePaymentMethod' => array(

View file

@ -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)));
}
}

View file

@ -109,7 +109,7 @@ abstract class PhortunePaymentProvider extends Phobject {
abstract public function canRunConfigurationTest(); abstract public function canRunConfigurationTest();
public function runConfigurationTest() { public function runConfigurationTest() {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -169,7 +169,7 @@ abstract class PhortunePaymentProvider extends Phobject {
* @task addmethod * @task addmethod
*/ */
public function translateCreatePaymentMethodErrorCode($error_code) { public function translateCreatePaymentMethodErrorCode($error_code) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -177,7 +177,7 @@ abstract class PhortunePaymentProvider extends Phobject {
* @task addmethod * @task addmethod
*/ */
public function getCreatePaymentMethodErrorMessage($error_code) { public function getCreatePaymentMethodErrorMessage($error_code) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -185,7 +185,7 @@ abstract class PhortunePaymentProvider extends Phobject {
* @task addmethod * @task addmethod
*/ */
public function validateCreatePaymentMethodToken(array $token) { public function validateCreatePaymentMethodToken(array $token) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -196,7 +196,7 @@ abstract class PhortunePaymentProvider extends Phobject {
AphrontRequest $request, AphrontRequest $request,
PhortunePaymentMethod $method, PhortunePaymentMethod $method,
array $token) { array $token) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -206,12 +206,12 @@ abstract class PhortunePaymentProvider extends Phobject {
public function renderCreatePaymentMethodForm( public function renderCreatePaymentMethodForm(
AphrontRequest $request, AphrontRequest $request,
array $errors) { array $errors) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
public function getDefaultPaymentMethodDisplayName( public function getDefaultPaymentMethodDisplayName(
PhortunePaymentMethod $method) { PhortunePaymentMethod $method) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
@ -290,7 +290,7 @@ abstract class PhortunePaymentProvider extends Phobject {
public function processControllerRequest( public function processControllerRequest(
PhortuneProviderActionController $controller, PhortuneProviderActionController $controller,
AphrontRequest $request) { AphrontRequest $request) {
throw new PhortuneNotImplementedException($this); throw new PhutilMethodNotImplementedException();
} }
} }