Skip to content

Commit

Permalink
Sync JsonException (php#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Nov 13, 2023
1 parent bd4f6ff commit dde8e13
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions reference/json/jsonexception.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: daijie Status: ready -->
<phpdoc:exceptionref xml:id="class.jsonexception" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>JsonException 类</title>
<titleabbrev>JsonException</titleabbrev>

<partintro>

<!-- {{{ JsonException intro -->
<section xml:id="jsonexception.intro">
&reftitle.intro;
<para>
如果为 <function>json_encode</function> 或 <function>json_decode</function>
设置了 <option>JSON_THROW_ON_ERROR</option> 选项,则会抛出异常。
<varname>code</varname> 包含错误类型,关于可能的值请参见 <function>json_last_error</function>。
</para>
</section>
<!-- }}} -->

<section xml:id="jsonexception.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooexception>
<exceptionname>JsonException</exceptionname>
</ooexception>

<ooclass>
<modifier>extends</modifier>
<classname>Exception</classname>
</ooclass>

<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/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.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->

</section>

</partintro>

<!-- If the exception has any methods you'd like to document use this
&reference.extname.entities.classname;
-->

</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
-->

0 comments on commit dde8e13

Please sign in to comment.