forked from php/doc-zh
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd4f6ff
commit dde8e13
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--> |