ZimbraApiException.php 578 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Exceptions;
  3. use Throwable;
  4. /**
  5. *
  6. * Created by PhpStorm.
  7. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  8. * Date: 03.10.19
  9. * Time: 11:09
  10. * Class ZimbraApiException
  11. */
  12. class ZimbraApiException extends \Exception
  13. {
  14. const UNSUPORTED_CLASS = 04001;
  15. const UNSUPORTED_CLIENT = 04002;
  16. public function __construct($params = [])
  17. {
  18. //todo debug log
  19. //$params['']
  20. parent::__construct($params['message'], $params['code'], $params['previous']);
  21. }
  22. }