Files
plugins/AppStore/libs/exceptions.php
chorblack e75f275ef4
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled
Initial commit
2026-03-07 11:19:25 +08:00

21 lines
445 B
PHP

<?php
class JsonableException extends Exception {
public function responseJson()
{
header('Content-Type: application/json');
echo json_encode(array(
'status' => false,
'error' => $this->getMessage(),
));
}
}
class VersionNotMatchException extends JsonableException{}
class DownloadErrorException extends JsonableException{}
class UnzipErrorException extends JsonableException{}