@@ -20,7 +20,7 @@ public function all($endpoint = '', $options = [])
20
20
21
21
return $ this ->client ->get ($ endpoint , $ options );
22
22
} catch (\Exception $ e ) {
23
- throw new \Exception ($ e ->getMessages (), 1 );
23
+ throw new \Exception ($ e ->getMessage (), 1 );
24
24
}
25
25
}
26
26
@@ -40,7 +40,7 @@ public function find($endpoint = '', $options = [])
40
40
41
41
return $ this ->client ->get ($ endpoint , $ options );
42
42
} catch (\Exception $ e ) {
43
- throw new \Exception ($ e ->getMessages (), 1 );
43
+ throw new \Exception ($ e ->getMessage (), 1 );
44
44
}
45
45
}
46
46
@@ -60,7 +60,7 @@ public function create($endpoint, $data)
60
60
61
61
return $ this ->client ->post ($ endpoint , $ data );
62
62
} catch (\Exception $ e ) {
63
- throw new \Exception ($ e ->getMessages (), 1 );
63
+ throw new \Exception ($ e ->getMessage (), 1 );
64
64
}
65
65
}
66
66
@@ -80,7 +80,7 @@ public function update($endpoint, $data)
80
80
81
81
return $ this ->client ->put ($ endpoint , $ data );
82
82
} catch (\Exception $ e ) {
83
- throw new \Exception ($ e ->getMessages (), 1 );
83
+ throw new \Exception ($ e ->getMessage (), 1 );
84
84
}
85
85
}
86
86
@@ -100,7 +100,7 @@ public function delete($endpoint, $options = [])
100
100
101
101
return $ this ->client ->delete ($ endpoint , $ options );
102
102
} catch (\Exception $ e ) {
103
- throw new \Exception ($ e ->getMessages (), 1 );
103
+ throw new \Exception ($ e ->getMessage (), 1 );
104
104
}
105
105
}
106
106
@@ -114,7 +114,7 @@ public function getRequest()
114
114
try {
115
115
return $ this ->client ->http ->getRequest ();
116
116
} catch (\Exception $ e ) {
117
- throw new \Exception ($ e ->getMessages (), 1 );
117
+ throw new \Exception ($ e ->getMessage (), 1 );
118
118
}
119
119
}
120
120
@@ -128,7 +128,7 @@ public function getResponse()
128
128
try {
129
129
return $ this ->client ->http ->getResponse ();
130
130
} catch (\Exception $ e ) {
131
- throw new \Exception ($ e ->getMessages (), 1 );
131
+ throw new \Exception ($ e ->getMessage (), 1 );
132
132
}
133
133
}
134
134
0 commit comments