You are here

class TwitterException in Twitter 7.3

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \TwitterException
  2. 6.3 twitter.lib.php \TwitterException
  3. 7.6 twitter.lib.php \TwitterException
  4. 7.5 twitter.lib.php \TwitterException

Exception handling class.

Hierarchy

Expanded class hierarchy of TwitterException

File

./twitter.lib.php, line 10
Classes to implement the full Twitter API

View source
class TwitterException extends Exception {

  /**
   * Overrides constructor to log the error.
   */
  public function __construct($message = NULL, $code = 0, Exception $previous = NULL) {
    watchdog('twitter', 'Unexpected error: @message', array(
      '@message' => $message,
    ), WATCHDOG_ERROR);
    if (is_null($previous)) {
      parent::__construct($message, $code);
    }
    else {
      parent::__construct($message, $code, $previous);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TwitterException::__construct public function Overrides constructor to log the error.