You are here

public function CampaignMonitor::getErrors in Campaign Monitor 7

Returns the internal error array with the format below.

$errors[] = array( 'type' => [watchdog error type], 'code' => [error code], 'message' => [message], );

Return value

array|bool An array of errors or FALSE if the array is empty.

File

lib/campaignmonitor.class.inc, line 349
Implementation of the CampaignMonitor class.

Class

CampaignMonitor
Implementation of the CampaignMonitor class.

Code

public function getErrors() {
  if (count($this->errors)) {
    return $this->errors;
  }
  return FALSE;
}