@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } catch (\Exception $e) { |
51 | 51 | if ($exception != NULL) { |
52 | 52 | throw $exception; |
53 | - } elseif($e instanceof MnsException) { |
|
53 | + } elseif ($e instanceof MnsException) { |
|
54 | 54 | throw $e; |
55 | 55 | } else { |
56 | 56 | throw new MnsException($statusCode, $e->getMessage()); |
@@ -66,12 +66,10 @@ discard block |
||
66 | 66 | } |
67 | 67 | } |
68 | 68 | } |
69 | - } |
|
70 | - catch (\Exception $e) |
|
69 | + } catch (\Exception $e) |
|
71 | 70 | { |
72 | 71 | throw new MnsException($statusCode, $e->getMessage(), $e); |
73 | - } |
|
74 | - catch (\Throwable $t) |
|
72 | + } catch (\Throwable $t) |
|
75 | 73 | { |
76 | 74 | throw new MnsException($statusCode, $t->getMessage()); |
77 | 75 | } |
@@ -97,23 +95,19 @@ discard block |
||
97 | 95 | $result = XMLParser::parseNormalError($xmlReader); |
98 | 96 | |
99 | 97 | throw new MnsException($statusCode, $result['Message'], $exception, $result['Code'], $result['RequestId'], $result['HostId']); |
100 | - } |
|
101 | - catch (\Exception $e) |
|
98 | + } catch (\Exception $e) |
|
102 | 99 | { |
103 | 100 | if ($exception != NULL) |
104 | 101 | { |
105 | 102 | throw $exception; |
106 | - } |
|
107 | - elseif ($e instanceof MnsException) |
|
103 | + } elseif ($e instanceof MnsException) |
|
108 | 104 | { |
109 | 105 | throw $e; |
110 | - } |
|
111 | - else |
|
106 | + } else |
|
112 | 107 | { |
113 | 108 | throw new MnsException($statusCode, $e->getMessage()); |
114 | 109 | } |
115 | - } |
|
116 | - catch (\Throwable $t) |
|
110 | + } catch (\Throwable $t) |
|
117 | 111 | { |
118 | 112 | throw new MnsException($statusCode, $t->getMessage()); |
119 | 113 | } |