[messages] map for * validation), serialized into the JSON-RPC error `data` member. * * @see \Leantime\Core\Exceptions\LeantimeException The abstract base implementing this. * @see \Leantime\Core\Http\Responses\JsonRpcErrorResponse::fromException() */ interface LeantimeExceptionInterface extends HttpExceptionInterface { /** * JSON-RPC 2.0 error code for this failure (e.g. -32602 invalid params). */ public function getRpcCode(): int; /** * A client-safe description of the failure. Distinct from getMessage(), which may * contain internal detail that should only be logged. */ public function getClientMessage(): string; /** * Optional structured detail (e.g. ['field' => ['message', ...]]); empty when none. * * @return array */ public function getErrorData(): array; }