2007-10-14 01:45:08 +04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Coverage for Doctrine_Connection_Exception</title>
|
|
|
|
<style type="text/css">
|
|
|
|
.covered{ background: green;}
|
|
|
|
.normal{ background: white;}
|
|
|
|
.red{ background: red;}
|
|
|
|
.orange{ background: #f90;}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body><h1>Coverage for Doctrine_Connection_Exception</h1><p><a href="index.php">Back to coverage report</a></p><table>
|
|
|
|
<tr><td>1</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"><?php
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>2</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">/*
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>3</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * $Id: Exception.php 2963 2007-10-21 06:23:59Z Jonathan.Wage $
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>4</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>5</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>6</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>7</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>8</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>9</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>10</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>11</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>12</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>13</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>14</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>15</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>16</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>17</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * This software consists of voluntary contributions made by many individuals
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>18</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * and is licensed under the LGPL. For more information, see
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>19</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * <http://www.phpdoctrine.org>.
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>20</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>21</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered">Doctrine::autoload('Doctrine_Exception');
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>22</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">/**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>23</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * Doctrine_Exception
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>24</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>25</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @package Doctrine
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>26</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @subpackage Connection
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>27</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>28</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @link www.phpdoctrine.org
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>29</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @since 1.0
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>30</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @version $Revision: 2963 $
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>31</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>32</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>33</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered">class Doctrine_Connection_Exception extends Doctrine_Exception
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>34</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">{
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>35</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>36</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @var array $errorMessages an array containing messages for portable error codes
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>37</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>38</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> static protected $errorMessages = array(
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>39</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR => 'unknown error',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>40</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_ALREADY_EXISTS => 'already exists',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>41</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CANNOT_CREATE => 'can not create',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>42</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CANNOT_ALTER => 'can not alter',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>43</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CANNOT_REPLACE => 'can not replace',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>44</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CANNOT_DELETE => 'can not delete',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>45</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CANNOT_DROP => 'can not drop',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>46</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CONSTRAINT => 'constraint violation',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>47</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>48</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_DIVZERO => 'division by zero',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>49</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_INVALID => 'invalid',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>50</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_INVALID_DATE => 'invalid date or time',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>51</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_INVALID_NUMBER => 'invalid number',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>52</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_MISMATCH => 'mismatch',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>53</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NODBSELECTED => 'no database selected',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>54</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOSUCHFIELD => 'no such field',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>55</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOSUCHTABLE => 'no such table',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>56</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOT_CAPABLE => 'Doctrine backend not capable',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>57</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOT_FOUND => 'not found',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>58</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOT_LOCKED => 'not locked',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>59</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_SYNTAX => 'syntax error',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>60</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_UNSUPPORTED => 'not supported',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>61</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>62</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_INVALID_DSN => 'invalid DSN',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>63</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_CONNECT_FAILED => 'connect failed',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>64</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NEED_MORE_DATA => 'insufficient data supplied',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>65</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>66</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_NOSUCHDB => 'no such database',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>67</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_ACCESS_VIOLATION => 'insufficient permissions',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>68</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_LOADMODULE => 'error while including on demand module',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>69</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_TRUNCATED => 'truncated',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>70</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> Doctrine::ERR_DEADLOCK => 'deadlock detected',
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>71</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> );
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>72</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>73</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>74</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @see Doctrine::ERR_* constants
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>75</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @since 1.0
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>76</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @var integer $portableCode portable error code
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>77</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>78</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> protected $portableCode;
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>79</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>80</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>81</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * getPortableCode
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>82</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * returns portable error code
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>83</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>84</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @return integer portable error code
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>85</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>86</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> public function getPortableCode()
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>87</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> {
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>88</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="covered"> return $this->portableCode;
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>89</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="orange"> }
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>90</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>91</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>92</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * getPortableMessage
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>93</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * returns portable error message
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>94</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>95</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @return string portable error message
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>96</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>97</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> public function getPortableMessage()
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>98</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> {
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>99</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="red"> return self::errorMessage($this->portableCode);
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>100</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="orange"> }
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>101</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal">
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>102</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> /**
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>103</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * Return a textual error message for a Doctrine error code
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>104</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>105</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @param int|array integer error code,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>106</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * null to get the current error code-message map,
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>107</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * or an array with a new error code-message map
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>108</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> *
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>109</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * @return string error message, or false if the error code was
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>110</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> * not recognized
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>111</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> */
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>112</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> public function errorMessage($value = null)
|
2007-10-14 01:45:08 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>113</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="normal"> {
|
2007-10-21 20:12:20 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>114</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="red"> return isset(self::$errorMessages[$value]) ?
|
2007-10-21 20:12:20 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>115</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="red"> self::$errorMessages[$value] : self::$errorMessages[Doctrine::ERR];
|
2007-10-21 20:12:20 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>116</td>
|
2008-02-22 21:11:35 +03:00
|
|
|
<td class="orange"> }
|
2007-10-21 20:12:20 +04:00
|
|
|
</td></tr>
|
|
|
|
<tr><td>117</td>
|
2007-10-14 01:45:08 +04:00
|
|
|
<td class="covered">}</td></tr>
|
|
|
|
</table></body></html>
|