- Renamed analytics-hub/ → analyticshub/ - App ID in info.xml is 'analyticshub' (no hyphen) - Nextcloud requires folder name to match app ID exactly - Fixes 'Could not download app analyticshub' error during installation Installation: - Upload analyticshub/ folder to /var/www/nextcloud/apps/ - Folder name must match app ID in info.xml
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);
|
|
}
|
|
}
|