error_code; } /** * Check if error is recoverable (should retry). * * @return bool */ public function isRecoverable(): bool { return $this->recoverable; } /** * Get HTTP status code. * * @return int */ public function getHttpStatus(): int { return $this->http_status; } /** * Get user-friendly error message. * * @return string */ public function getUserMessage(): string { return __('An error occurred. Please try again.', 'ai-product-tools'); } }