Browse Source

[DOCUMENTATION]Japanese sync 19661

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19676 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 years ago
parent
commit
c3b52a00d2

+ 5 - 1
documentation/manual/ja/manual.xml.in

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19550 -->
+<!-- EN-Revision: 19661 -->
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     "@DOCBOOK_DTD@"
 [
@@ -185,6 +185,10 @@
     <chapter id="zend.exception">
         <title>Zend_Exception</title>
         <xi:include href="module_specs/Zend_Exception.xml" />
+        <xi:include href="module_specs/Zend_Exception-Basic.xml" />
+        <xi:include href="module_specs/Zend_Exception-Previous.xml">
+            <xi:fallback><xi:include href="../en/module_specs/Zend_Exception-Previous.xml" /></xi:fallback>
+        </xi:include>
     </chapter>
 
     <chapter id="zend.feed">

+ 38 - 0
documentation/manual/ja/module_specs/Zend_Exception-Basic.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Reviewed: no -->
+<!-- EN-Revision: 19661 -->
+<sect1 id="zend.exception.basic">
+    <title>基本的な使用法</title>
+
+    <para>
+        <classname>Zend_Exception</classname> はZend Framework でスローされる例外全ての基底クラスです。
+        このクラスは、 PHP の基本的な <classname>Exception</classname> クラスを拡張します。
+    </para>
+
+    <example id="zend.exception.catchall.example">
+        <title>Zend Framework の例外全てを捕捉する</title>
+
+        <programlisting language="php"><![CDATA[
+try {
+    // あなたのコード
+} catch (Zend_Exception $e) {
+    // 何らかの処理
+}
+]]></programlisting>
+    </example>
+
+    <example id="zend.exception.catchcomponent.example">
+        <title>Zend Framework の特定のコンポーネントでスローされた例外を捕捉する</title>
+
+        <programlisting language="php"><![CDATA[
+try {
+    // あなたのコード
+} catch (Zend_Db_Exception $e) {
+    // 何らかの処理
+}
+]]></programlisting>
+    </example>
+</sect1>
+<!--
+vim:se ts=4 sw=4 et:
+-->

+ 1 - 1
documentation/manual/ja/module_specs/Zend_Exception.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 15681 -->
+<!-- EN-Revision: 19661 -->
 <sect1 id="zend.exception.using">
 
     <title>例外の使用法</title>