Skip to content

Commit

Permalink
Added a getError() to get Error object
Browse files Browse the repository at this point in the history
Added a getError() to get Error object instead of just getting the error code and message
  • Loading branch information
kissifrot committed Jun 19, 2016
1 parent da66a54 commit d50f80e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ function handleError($errorCode, $errorMessage)
return false;
}

function getError()
{
return $this->error;
}

function getErrorCode()
{
return $this->error->code;
Expand Down

0 comments on commit d50f80e

Please sign in to comment.