| @@ 7430-7439 (lines=10) @@ | ||
| 7427 | * |
|
| 7428 | * @throws\Exception |
|
| 7429 | */ |
|
| 7430 | protected function handleException( \Exception $exception ) |
|
| 7431 | { |
|
| 7432 | if ( !$this->writer->sqlStateIn( $exception->getSQLState(), |
|
| 7433 | array( |
|
| 7434 | QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, |
|
| 7435 | QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN ) ) |
|
| 7436 | ) { |
|
| 7437 | throw $exception; |
|
| 7438 | } |
|
| 7439 | } |
|
| 7440 | ||
| 7441 | /** |
|
| 7442 | * Dispenses a new bean (a OODBBean Bean Object) |
|
| @@ 8815-8825 (lines=11) @@ | ||
| 8812 | * |
|
| 8813 | * @throws\Exception |
|
| 8814 | */ |
|
| 8815 | private function handleException(\Exception $exception ) |
|
| 8816 | { |
|
| 8817 | if ( $this->oodb->isFrozen() || !$this->writer->sqlStateIn( $exception->getSQLState(), |
|
| 8818 | array( |
|
| 8819 | QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, |
|
| 8820 | QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN ) |
|
| 8821 | ) |
|
| 8822 | ) { |
|
| 8823 | throw $exception; |
|
| 8824 | } |
|
| 8825 | } |
|
| 8826 | ||
| 8827 | /** |
|
| 8828 | * Internal method. |
|