OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Leantime\Core\Exceptions;
use Throwable;
/**
* Thrown when a specifically requested resource does not exist.
*
* Renders as HTTP 404 on the web/REST surfaces and JSON-RPC error -32002 on /api/jsonrpc.
*
* Use this for a missing *single* requested entity (e.g. getTicket(99) where 99 is gone) —
* NOT for an empty list/query result, which should still return `[]`. Throwing here keeps
* "not found" distinct from "no permission" (today both collapse to `false`).
*/
class NotFoundException extends LeantimeException
{
protected int $statusCode = 404;
protected int $rpcCode = -32002;
public function __construct(string $message = 'The requested resource could not be found.', ?Throwable $previous = null)
{
parent::__construct($message, 0, $previous);
}
}