-
-
Save tsh-code/b94d9c195782c7c9e6a50315aca27cd2 to your computer and use it in GitHub Desktop.
Better reason
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($response->getStatusCode() >= 400) { | |
$code = $this->extractErrorCode($response->getBody()); | |
switch ($code) { | |
case FailReasons::NO_TAGS: | |
$msg = 'The document has not enough signature tags'; | |
break; | |
//... | |
default: $msg = $this->getBodyContentAsString($response->getBody()); | |
} | |
throw new BadSigningRequest($msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment