Fix: Rename app folder to match app ID
- 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
This commit is contained in:
45
analyticshub/lib/Service/Exceptions.php
Normal file
45
analyticshub/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