@@ -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 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $stmt->execute($data); |
48 | 48 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
49 | - }catch(Exception $exception){ |
|
49 | + } catch(Exception $exception){ |
|
50 | 50 | $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception); |
51 | 51 | } |
52 | 52 | return []; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $stmt->execute(); |
64 | 64 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
65 | - }catch(Exception $exception){ |
|
65 | + } catch(Exception $exception){ |
|
66 | 66 | $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception); |
67 | 67 | return []; |
68 | 68 | } |