Files
ada_language_server/liblsp_3_17/source/lsp-errors.ads
2024-07-16 07:33:51 +00:00

35 lines
860 B
Ada

--
-- Copyright (C) 2022-2023, AdaCore
--
-- SPDX-License-Identifier: Apache-2.0
--
with VSS.Strings;
with LSP.Enumerations;
package LSP.Errors is
pragma Preelaborate;
type ResponseError is record
code : LSP.Enumerations.ErrorCodes;
-- A number indicating the error type that occurred.
message : VSS.Strings.Virtual_String;
-- A string providing a short description of the error.
-- data: string | number | boolean | array | object | null;
-- A primitive or structured value that contains additional information
-- about the error. Can be omitted.
end record;
type ResponseError_Optional (Is_Set : Boolean := False) is record
case Is_Set is
when False =>
null;
when True =>
Value : ResponseError;
end case;
end record;
end LSP.Errors;