svn: /phpdoc/ja/trunk/language/ errors/php7.xml predefined/exceptions.xml predefined/valueerror.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Sun, 22 Nov 2020 22:58:39 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351508

Log:
Add ValueError page

Patch contributed by George Peter Banyard <[email protected]>.

Changed paths:
    U   phpdoc/ja/trunk/language/errors/php7.xml
    U   phpdoc/ja/trunk/language/predefined/exceptions.xml
    A   phpdoc/ja/trunk/language/predefined/valueerror.xml

Modified: phpdoc/ja/trunk/language/errors/php7.xml
===================================================================
--- phpdoc/ja/trunk/language/errors/php7.xml	2020-11-22 22:50:38 UTC (rev 351507)
+++ phpdoc/ja/trunk/language/errors/php7.xml	2020-11-22 22:58:39 UTC (rev 351508)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 345757 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 351499 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->

 <sect1 xml:id="language.errors.php7" xmlns="http://docbook.org/ns/docbook">
  <title>PHP 7 でのエラー</title>
@@ -70,6 +71,9 @@
          </listitem>
         </itemizedlist>
        </listitem>
+       <listitem>
+        <simpara><classname>ValueError</classname></simpara>
+       </listitem>
       </itemizedlist>
      </listitem>
      <listitem>

Modified: phpdoc/ja/trunk/language/predefined/exceptions.xml
===================================================================
--- phpdoc/ja/trunk/language/predefined/exceptions.xml	2020-11-22 22:50:38 UTC (rev 351507)
+++ phpdoc/ja/trunk/language/predefined/exceptions.xml	2020-11-22 22:58:39 UTC (rev 351508)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 345757 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 351499 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->

 <part xml:id="reserved.exceptions" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>定義済みの例外</title>
@@ -24,6 +25,7 @@
  &language.predefined.compileerror;
  &language.predefined.parseerror;
  &language.predefined.typeerror;
+ &language.predefined.valueerror;
 </part>

 <!-- Keep this comment at the end of the file

Added: phpdoc/ja/trunk/language/predefined/valueerror.xml
===================================================================
--- phpdoc/ja/trunk/language/predefined/valueerror.xml	                        (rev 0)
+++ phpdoc/ja/trunk/language/predefined/valueerror.xml	2020-11-22 22:58:39 UTC (rev 351508)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 351496 Maintainer: mumumu Status: ready -->
+
+<phpdoc:exceptionref xml:id="class.valueerror"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:phpdoc="http://php.net/ns/phpdoc">
+ <title>ValueError</title>
+ <titleabbrev>ValueError</titleabbrev>
+
+ <partintro>
+
+<!-- {{{ Error intro -->
+  <section xml:id="valueerror.intro">
+   &reftitle.intro;
+   <para>
+    <classname>ValueError</classname> は、
+    引数の型は正しいものの、値が正しくない場合にスローされます。
+    たとえば、関数は正の整数を期待しているのに負の値を渡したり、
+    空でない文字列/配列を期待しているのに空の値を渡したりした場合です。
+  </para>
+  </section>
+<!-- }}} -->
+
+  <section xml:id="valueerror.synopsis">
+   &reftitle.classsynopsis;
+
+<!-- {{{ Synopsis -->
+   <classsynopsis>
+    <ooclass><classname>ValueError</classname></ooclass>
+
+<!-- {{{ Class synopsis -->
+    <classsynopsisinfo>
+     <ooclass>
+      <classname>ValueError</classname>
+     </ooclass>
+
+     <ooclass>
+      <modifier>extends</modifier>
+      <classname>Error</classname>
+     </ooclass>
+    </classsynopsisinfo>
+<!-- }}} -->
+
+    <classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
+    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
+     <xi:fallback />
+    </xi:include>
+
+    <classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
+    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
+   </classsynopsis>
+<!-- }}} -->
+  </section>
+ </partintro>
+</phpdoc:exceptionref>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->


Property changes on: phpdoc/ja/trunk/language/predefined/valueerror.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.