Page MenuHomePhabricator

D14445.id34912.diff
No OneTemporary

D14445.id34912.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -3405,7 +3405,6 @@
'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',
@@ -7718,7 +7717,6 @@
'PhortuneMerchantTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PhortuneMerchantViewController' => 'PhortuneMerchantController',
'PhortuneMonthYearExpiryControl' => 'AphrontFormControl',
- 'PhortuneNotImplementedException' => 'Exception',
'PhortuneOrderTableView' => 'AphrontView',
'PhortunePayPalPaymentProvider' => 'PhortunePaymentProvider',
'PhortunePaymentMethod' => array(
diff --git a/src/applications/phortune/exception/PhortuneNotImplementedException.php b/src/applications/phortune/exception/PhortuneNotImplementedException.php
deleted file mode 100644
--- a/src/applications/phortune/exception/PhortuneNotImplementedException.php
+++ /dev/null
@@ -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)));
- }
-
-}
diff --git a/src/applications/phortune/provider/PhortunePaymentProvider.php b/src/applications/phortune/provider/PhortunePaymentProvider.php
--- a/src/applications/phortune/provider/PhortunePaymentProvider.php
+++ b/src/applications/phortune/provider/PhortunePaymentProvider.php
@@ -109,7 +109,7 @@
abstract public function canRunConfigurationTest();
public function runConfigurationTest() {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
@@ -169,7 +169,7 @@
* @task addmethod
*/
public function translateCreatePaymentMethodErrorCode($error_code) {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
@@ -177,7 +177,7 @@
* @task addmethod
*/
public function getCreatePaymentMethodErrorMessage($error_code) {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
@@ -185,7 +185,7 @@
* @task addmethod
*/
public function validateCreatePaymentMethodToken(array $token) {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
@@ -196,7 +196,7 @@
AphrontRequest $request,
PhortunePaymentMethod $method,
array $token) {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
@@ -206,12 +206,12 @@
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 @@
public function processControllerRequest(
PhortuneProviderActionController $controller,
AphrontRequest $request) {
- throw new PhortuneNotImplementedException($this);
+ throw new PhutilMethodNotImplementedException();
}
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 10:02 PM (6 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6761054
Default Alt Text
D14445.id34912.diff (4 KB)

Event Timeline