protected function PrintEngineException::isAuthFailure in Entity Print 8.2
Check if this message looks like an authorisation failure.
Parameters
string $message: The error message.
Return value
bool TRUE if it was an auth failure otherwise FALSE.
1 call to PrintEngineException::isAuthFailure()
- PrintEngineException::refineMessage in src/
PrintEngineException.php - Attempt to refine the error message to help the user.
File
- src/
PrintEngineException.php, line 55
Class
- PrintEngineException
- The exception thrown when a implementation fails to generate a document.
Namespace
Drupal\entity_printCode
protected function isAuthFailure($message) {
$regexs = [
// Dompdf.
'/401 Unauthorized/',
// Wkhtmltopdf.
'/AuthenticationRequiredError/',
];
return $this
->evalulateRegex($regexs, $message);
}