* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\Assistant\Api; if (!defined('_PS_VERSION_')) { exit; } class SendError { /** * Send error in json with die * @param string $message * @return void */ public static function sendError($message = 'Cannot process call') { echo json_encode(['status' => false, 'error_message' => $message]); die; } }