Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14029314
D14445.id34981.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D14445.id34981.diff
View Options
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
@@ -3428,7 +3428,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',
@@ -7771,7 +7770,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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 8:26 PM (3 d, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734391
Default Alt Text
D14445.id34981.diff (4 KB)
Attached To
Mode
D14445: Remove the `PhortuneNotImplementedException` class
Attached
Detach File
Event Timeline
Log In to Comment