class TwitterException in Twitter 7.3
Same name and namespace in other branches
- 6.5 twitter.lib.php \TwitterException
- 6.3 twitter.lib.php \TwitterException
- 7.6 twitter.lib.php \TwitterException
- 7.5 twitter.lib.php \TwitterException
Exception handling class.
Hierarchy
- class \TwitterException extends \Exception
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwitterException:: |
public | function | Overrides constructor to log the error. |