@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $stmt = Connect::getInstance()->prepare("{$query}"); |
41 | 41 | $stmt->execute($data); |
42 | 42 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
43 | - }catch(Exception $exception){ |
|
43 | + } catch(Exception $exception){ |
|
44 | 44 | $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception); |
45 | 45 | } |
46 | 46 | return []; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $stmt = Connect::getInstance()->prepare("DESCRIBE {$this->table}"); |
53 | 53 | $stmt->execute(); |
54 | 54 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
55 | - }catch(Exception $exception){ |
|
55 | + } catch(Exception $exception){ |
|
56 | 56 | $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception); |
57 | 57 | return []; |
58 | 58 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $this->transaction('commit'); |
54 | 54 | |
55 | - }catch(DatamanagerException $er){ |
|
55 | + } catch(DatamanagerException $er){ |
|
56 | 56 | $this->transaction('rollback'); |
57 | 57 | throw $er; |
58 | 58 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->check_fail(); |
96 | 96 | |
97 | 97 | $this->transaction('commit'); |
98 | - }catch(DatamanagerException $er){ |
|
98 | + } catch(DatamanagerException $er){ |
|
99 | 99 | $this->transaction('rollback'); |
100 | 100 | throw $er; |
101 | 101 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /* NOTE: Must already have the Model returned from a query */ |
24 | 24 | $user->save(); |
25 | 25 | |
26 | -}catch(DatamanagerException $er){ |
|
26 | +} catch(DatamanagerException $er){ |
|
27 | 27 | |
28 | 28 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
29 | 29 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /* Searches for all records and returns an array of Model\User objects */ |
58 | 58 | $results = $entity->find()->execute()->toEntity(); |
59 | 59 | |
60 | -}catch(DatamanagerException $er){ |
|
60 | +} catch(DatamanagerException $er){ |
|
61 | 61 | |
62 | 62 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
63 | 63 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /* OR */ |
25 | 25 | $entity->remove(true); |
26 | 26 | |
27 | -}catch(DatamanagerException $er){ |
|
27 | +} catch(DatamanagerException $er){ |
|
28 | 28 | |
29 | 29 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
30 | 30 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /* Insert entity in database */ |
25 | 25 | $entity->persist(); |
26 | 26 | |
27 | -}catch(DatamanagerException $er){ |
|
27 | +} catch(DatamanagerException $er){ |
|
28 | 28 | |
29 | 29 | die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
30 | 30 |