PageRenderTime 26ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Docs/files/lib/exception-db-php.html

https://code.google.com/p/ezrpg/
HTML | 52 lines | 24 code | 23 blank | 5 comment | 0 complexity | c59a24a56b23f0bf9ad39342e31609ce MD5 | raw file
Possible License(s): GPL-3.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
  2. <html><head><title>DbException - ezRPG</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
  3. if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
  4. <!-- Generated by Natural Docs, version 1.4 -->
  5. <!-- http://www.naturaldocs.org -->
  6. <!-- saved from url=(0026)http://www.naturaldocs.org -->
  7. <div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="DbException"></a>DbException</h1><div class=CBody><p>Extends Exception class to specify a database error.</p><h4 class=CHeading>Example (throwing an exception)</h4><blockquote><pre>throw new DbException('tablename', DATABASE_ERROR);
  8. throw new DbException($this-&gt;db, SERVER_ERROR);
  9. throw new DbException($query, SQL_ERROR);</pre></blockquote><h4 class=CHeading>See Also</h4><ul><li><a href="class-dbfactory-php.html#DbFactory" class=LClass id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">DbFactory</a></li><li><a href="const-errors-php.html#Error_Codes" class=LSection id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">Error Codes</a></li></ul><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#DbException" >DbException</a></td><td class=SDescription>Extends Exception class to specify a database error.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#DbException.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#DbException.__toString" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">__toString</a></td><td class=SDescription>Formats and returns the error file, line and message.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
  10. <div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="DbException.Functions"></a>Functions</h3></div></div>
  11. <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="DbException.__toString"></a>__toString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function __toString()</td></tr></table></blockquote><p>Formats and returns the error file, line and message.</p><p>Uses die() to print the formatted error message and to stop further execution of any code.</p><h4 class=CHeading>Example Usage</h4><blockquote><pre>try
  12. {
  13. //Failed sql query
  14. }
  15. catch (DbException $e)
  16. {
  17. $e-&gt;__toString(); //Display the error page. This will stop further execution of the script.
  18. }</pre></blockquote></div></div></div>
  19. </div><!--Content-->
  20. <div id=Footer>Copyright &copy; 2009 ezRPG Project&nbsp; &middot;&nbsp; Updated June 26th, 2010&nbsp; &middot;&nbsp; <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
  21. <div id=Menu><div class=MTitle>ezRPG<div class=MSubTitle>Documentation</div></div><div class=MEntry><div class=MFile><a href="../config-php.html">Config</a></div></div><div class=MEntry><div class=MFile><a href="../modules/example-php.html">Module_Example</a></div></div><div class=MEntry><div class=MFile><a href="../modules/skeleton-php.html">Module_Skeleton</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Lib</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="const-errors-php.html">Error Codes</a></div></div><div class=MEntry><div class=MFile><a href="func-log-php.html">Log Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-player-php.html">Player Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-rand-php.html">Random Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-text-php.html">Text Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-validate-php.html">Validation functions</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Classes</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="class-base_module-php.html">Base_Module</a></div></div><div class=MEntry><div class=MFile><a href="class-dbfactory-php.html">DbFactory</a></div></div><div class=MEntry><div class=MFile><a href="class-hooks-php.html">Hooks</a></div></div><div class=MEntry><div class=MFile><a href="class-imagebar-php.html">ImageBar</a></div></div><div class=MEntry><div class=MFile><a href="class-modulefactory-php.html">ModuleFactory</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Modules</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../modules/AccountSettings/index-php.html">AccountSettings</a></div></div><div class=MEntry><div class=MFile><a href="../modules/City/index-php.html">City</a></div></div><div class=MEntry><div class=MFile><a href="../modules/EventLog/index-php.html">EventLog</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Index/index-php.html">Index</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Login/index-php.html">Login</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Logout/index-php.html">Logout</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Members/index-php.html">Members</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Register/index-php.html">Register</a></div></div><div class=MEntry><div class=MFile><a href="../modules/StatPoints/index-php.html">StatPoints</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Admin Modules</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../admin/Index/index-php.html">Admin_Index</a></div></div><div class=MEntry><div class=MFile><a href="../admin/Members/index-php.html">Admin_Members</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Database Drivers</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="db-mysql-php.html">Db_mysql</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Exceptions</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile id=MSelected>DbException</div></div><div class=MEntry><div class=MFile><a href="exception-file-php.html">FileException</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">Index</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constants.html">Constants</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../install-php.html">Install</a></div></div><div class=MEntry><div class=MLink><a href="http://www.ezrpgproject.com/">ezRPG Project</a></div></div><script type="text/javascript"><!--
  22. var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
  23. --></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
  24. HideAllBut([6, 7, 5, 4], 8);// --></script></div><!--Menu-->
  25. <!--START_ND_TOOLTIPS-->
  26. <div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function __toString()</td></tr></table></blockquote>Formats and returns the error file, line and message.</div></div><div class=CToolTip id="tt2"><div class=CClass>Factory class for database drivers.</div></div><div class=CToolTip id="tt3"><div class=CSection>This file defines constants that are used as error codes.</div></div><!--END_ND_TOOLTIPS-->
  27. <div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
  28. <script language=JavaScript><!--
  29. if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>