Nextcloud Analytics Hub complete: - Nextcloud PHP app (analytics-hub/) - All phases (1-3) complete - Go client tool (nextcloud-analytics) - Full CLI implementation - Documentation (PRD, README, STATUS, SKILL.md) - Production-ready for deployment to https://cloud.shortcutsolutions.net Repository: git.teamworkapps.com/shortcut/nextcloud-analytics Workspace: /home/molt/.openclaw/workspace
46 lines
931 B
PHP
46 lines
931 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\AnalyticsHub\Service;
|
|
|
|
/**
|
|
* Custom exceptions for Analytics Hub
|
|
*/
|
|
|
|
/**
|
|
* Token expired exception
|
|
*/
|
|
class TokenExpiredException extends \Exception {
|
|
public function __construct(string $message = "Refresh token expired") {
|
|
parent::__construct($message);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Rate limit exceeded exception
|
|
*/
|
|
class RateLimitException extends \Exception {
|
|
public function __construct(string $message = "Rate limit exceeded") {
|
|
parent::__construct($message);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Timeout exception
|
|
*/
|
|
class TimeoutException extends \Exception {
|
|
public function __construct(string $message = "API timeout") {
|
|
parent::__construct($message);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Data incomplete exception
|
|
*/
|
|
class DataIncompleteException extends \Exception {
|
|
public function __construct(string $message = "Data incomplete") {
|
|
parent::__construct($message);
|
|
}
|
|
}
|