Skip to content

Commit 687a128

Browse files
committed
Fixed Exception Handling
1 parent b22a4cf commit 687a128

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Dfcplc/PostcodeAnywhere/InternationalBankValidation/Validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function MakeRequest()
2828
//Check for an error, if there is one then throw an exception
2929
if ($file->Columns->Column->attributes()->Name == "Error")
3030
{
31-
throw new Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
31+
throw new \Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
3232
}
3333

3434
//Copy the data

src/Dfcplc/PostcodeAnywhere/PostcodeAnywhere/Find.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function MakeRequest()
4343
//Check for an error, if there is one then throw an exception
4444
if ($file->Columns->Column->attributes()->Name == "Error")
4545
{
46-
throw new Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
46+
throw new \Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
4747
}
4848

4949
//Copy the data

src/Dfcplc/PostcodeAnywhere/PostcodeAnywhere/FindByParts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function MakeRequest()
4242
//Check for an error, if there is one then throw an exception
4343
if ($file->Columns->Column->attributes()->Name == "Error")
4444
{
45-
throw new Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
45+
throw new \Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
4646
}
4747

4848
//Copy the data

src/Dfcplc/PostcodeAnywhere/PostcodeAnywhere/Retrieve.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function MakeRequest()
2727
//Check for an error, if there is one then throw an exception
2828
if ($file->Columns->Column->attributes()->Name == "Error")
2929
{
30-
throw new Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
30+
throw new \Exception("[ID] " . $file->Rows->Row->attributes()->Error . " [DESCRIPTION] " . $file->Rows->Row->attributes()->Description . " [CAUSE] " . $file->Rows->Row->attributes()->Cause . " [RESOLUTION] " . $file->Rows->Row->attributes()->Resolution);
3131
}
3232

3333
//Copy the data

0 commit comments

Comments
 (0)