Phase 3: Initial commit - Nextcloud Analytics Hub Project
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
This commit is contained in:
45
analytics-hub/lib/Service/Exceptions.php
Normal file
45
analytics-hub/lib/Service/Exceptions.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user