Documentation Advanced Usage

Error Handling

Deep dive into extensive customization options.

Error Handling

Learn how to handle errors in WhatsApp Manager.

Try-Catch

try {
    Whatsapp::sendTextMessage(...);
} catch (\Exception $e) {
    logger()->error('Error sending message: ' . $e->getMessage());
}

Logs

tail -f storage/logs/whatsapp.log

Common Error Codes

  • 400 - Invalid request
  • 401 - Invalid token
  • 403 - Access denied
  • 429 - Too many requests
  • 500 - Server error

⚠️ Important<br />
Always check WhatsApp logs for debugging.

Share this page