⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sca.examples.errorhandling.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Error handling</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sca.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sca.html">SCA Functions</a></div> <div class="up"><a href="sca.examples.html">Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="SCA.examples.errorhandling" class="section">  <h2 class="title"> Error handling </h2>  <p class="para">    This section describes how errors are handled. There are two   types of errors:  </p>  <ul class="itemizedlist">   <li class="listitem">    <p class="para">      SCA runtime exceptions are those that signal problems in     the management of the execution of components, and in the     interaction with remote services. These might occur due to     network or configuration problems.    </p>   </li>      <li class="listitem">    <p class="para">      Business exceptions are those that are defined by the     programmer. They extend the PHP Exception class, and are thrown     and caught deliberately as part of the business logic.     </p>   </li>     </ul>    <div id="sca.examples.errorhandling.runtime" class="section">   <h2 class="title"> Handling of Runtime exceptions </h2>   <p class="para">     There are two types of SCA runtime exception:    </p>      <ul class="itemizedlist">    <li class="listitem">     <p class="para">       SCA_RuntimeException - signals a problem found by or      perhaps occurring within the SCA runtime. This can be thrown for      a variety of reasons, many of which can occur regardless of      whether a connection is being made to a local or a remote service:      an error in one of the annotations within a component, a missing      WSDL or php file, and so on. In the case of Web services, an      SCA_RuntimeException can also be thrown if a SoapFault is      received from a remote Web service and the fault code in the      SoapFault indicates that a retry is unlikely to be successful.     </p>    </li>        <li class="listitem">     <p class="para">       SCA_ServiceUnavailableException - this is a subclass of      SCA_RuntimeException and signals a problem in connecting to or      using a remote service, but one which might succeed if retried.      In the case of Web services, this exception is thrown if a      SoapFault is received with a fault code that indicates that a      retry might be successful.      </p>    </li>       </ul>  </div>    <div id="sca.examples.errorhandlilng.business" class="section">    <h2 class="title"> Handling of Business exceptions </h2>   <p class="para">     Business exceptions may be defined and thrown by a component    in the normal way, regardless of whether the component has been    called locally or remotely. The SCA runtime does not catch    business exceptions that have been thrown by a component called    locally, so they will be returned to a caller in the normal way. If a    component has been called via a Web service, on the other hand, the    SCA runtime on the service providing end does catch business    exceptions, and will ensure these are passed back to the calling    end and re-thrown. Assuming that the calling end has a definition    of the exception (that is, is able to include a file containing the    PHP class defining the exception) the re-thrown exception will    contain the same details as the original, so that the    <b>getLine()</b> and    <b>getFile()</b> methods for example will contain    the location where the exception was thrown within the business    logic. The exception will be passed in the detail field of a soap    fault with a fault code of &quot;Client&quot;.    </p>  </div>       </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sca.examples.html">Examples</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.sca.html">SCA Functions</a></div> <div class="up"><a href="sca.examples.html">Examples</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -