You are here

public function Mailchimp::setDebugErrorCode in Mailchimp 8

Sets a Mailchimp error code to be returned by all requests.

Used to test and debug error handling.

Parameters

string $error_code: The Mailchimp error code.

File

lib/mailchimp-api-php/src/Mailchimp.php, line 137

Class

Mailchimp
Mailchimp library.

Namespace

Mailchimp

Code

public function setDebugErrorCode($error_code) {
  $this->debug_error_code = $error_code;
}