Page MenuHomePhabricator

D9992.id24016.diff
No OneTemporary

D9992.id24016.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
@@ -69,6 +69,7 @@
'LinesOfALargeFile' => 'filesystem/linesofalarge/LinesOfALargeFile.php',
'LinesOfALargeFileTestCase' => 'filesystem/linesofalarge/__tests__/LinesOfALargeFileTestCase.php',
'MFilterTestHelper' => 'utils/__tests__/MFilterTestHelper.php',
+ 'NotImplementedException' => 'exception/NotImplementedException.php',
'PHPASTParserTestCase' => 'parser/xhpast/__tests__/PHPASTParserTestCase.php',
'PhageAgentBootloader' => 'phage/bootloader/PhageAgentBootloader.php',
'PhageAgentTestCase' => 'phage/__tests__/PhageAgentTestCase.php',
@@ -465,8 +466,8 @@
),
'xmap' => array(
'AASTNodeList' => array(
- 0 => 'Iterator',
- 1 => 'Countable',
+ 'Iterator',
+ 'Countable',
),
'AbstractDirectedGraphTestCase' => 'PhutilTestCase',
'AphrontDatabaseConnection' => 'PhutilQsprintfInterface',
@@ -514,6 +515,7 @@
'LinesOfALargeExecFutureTestCase' => 'PhutilTestCase',
'LinesOfALargeFile' => 'LinesOfALarge',
'LinesOfALargeFileTestCase' => 'PhutilTestCase',
+ 'NotImplementedException' => 'Exception',
'PHPASTParserTestCase' => 'PhutilTestCase',
'PhageAgentTestCase' => 'PhutilTestCase',
'PhagePHPAgentBootloader' => 'PhageAgentBootloader',
@@ -529,10 +531,10 @@
'PhutilArgumentSpecificationTestCase' => 'PhutilTestCase',
'PhutilArgumentUsageException' => 'PhutilArgumentParserException',
'PhutilArray' => array(
- 0 => 'Phobject',
- 1 => 'Countable',
- 2 => 'ArrayAccess',
- 3 => 'Iterator',
+ 'Phobject',
+ 'Countable',
+ 'ArrayAccess',
+ 'Iterator',
),
'PhutilArrayTestCase' => 'PhutilTestCase',
'PhutilArrayWithDefaultValue' => 'PhutilArray',
diff --git a/src/exception/NotImplementedException.php b/src/exception/NotImplementedException.php
new file mode 100644
--- /dev/null
+++ b/src/exception/NotImplementedException.php
@@ -0,0 +1,9 @@
+<?php
+
+final class NotImplementedException extends Exception {
+
+ public function __construct($message = null) {
+ parent::__construct($message ? $message : pht('Not implemented!'));
+ }
+
+}
diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineBlockRule.php
--- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineBlockRule.php
+++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineBlockRule.php
@@ -88,7 +88,7 @@
}
public function extractChildText($text) {
- throw new Exception(pht('Not implemented!'));
+ throw new NotImplementedException();
}
protected function renderRemarkupTable(array $out_rows) {

File Metadata

Mime Type
text/plain
Expires
Wed, May 15, 12:36 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6295835
Default Alt Text
D9992.id24016.diff (2 KB)

Event Timeline