protected function MandrillTestAPI::getErrorResponse in Mandrill 8
Gets a Mandrill-style formatted error response.
Parameters
int $code: The Mandrill error code.
string $name: The name of the Mandrill error type (ValidationError, etc.)
$message: The error message.
Return value
array Formatted error response.
2 calls to MandrillTestAPI::getErrorResponse()
- MandrillTestAPI::send in src/
MandrillTestAPI.php - The function that calls the API send message.
- MandrillTestAPI::sendTemplate in src/
MandrillTestAPI.php - Sends a templated Mandrill message.
File
- src/
MandrillTestAPI.php, line 232
Class
- MandrillTestAPI
- Overrides functions in the Mandrill API service for testing.
Namespace
Drupal\mandrillCode
protected function getErrorResponse($code, $name, $message) {
$response = array(
'status' => 'error',
'code' => $code,
'name' => $name,
'message' => $message,
);
return $response;
}