InvalidBody.php 649 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Akeeba Engine
  4. *
  5. * @package akeebaengine
  6. * @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
  7. * @license GNU General Public License version 3, or later
  8. */
  9. namespace Akeeba\Engine\Postproc\Connector\S3v4\Exception;
  10. // Protection against direct access
  11. use Exception;
  12. defined('AKEEBAENGINE') or die();
  13. /**
  14. * Invalid response body type
  15. */
  16. class InvalidBody extends \RuntimeException
  17. {
  18. public function __construct($message = "", $code = 0, Exception $previous = null)
  19. {
  20. if (empty($message))
  21. {
  22. $message = 'Invalid response body type';
  23. }
  24. parent::__construct($message, $code, $previous);
  25. }
  26. }