ApiException.php 306 Bytes
Newer Older
raphael's avatar
raphael committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * Exception for Communecter business Error
 */
class CommunecterException extends Exception
{

  public function __construct($message = null, $code = 0) {
      if (!$message) {
          throw new $this('Unknown '. get_class($this));
      }
      parent::__construct($message, $code);
    }

}