summaryrefslogtreecommitdiff
path: root/server-beta/src/define/ErrorCodes.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-20 11:46:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-20 11:46:43 +0800
commite02ead0fa3d86e4c9ecb26ce796bfeb20e751934 (patch)
treef18f43e4584b09223a2b2ad54f6a41d140b8309b /server-beta/src/define/ErrorCodes.lua
parentb243ddc5f819a33683599cc7701cb2f22424e00a (diff)
downloadlua-language-server-e02ead0fa3d86e4c9ecb26ce796bfeb20e751934.zip
注册method
Diffstat (limited to 'server-beta/src/define/ErrorCodes.lua')
-rw-r--r--server-beta/src/define/ErrorCodes.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/server-beta/src/define/ErrorCodes.lua b/server-beta/src/define/ErrorCodes.lua
new file mode 100644
index 00000000..befb5630
--- /dev/null
+++ b/server-beta/src/define/ErrorCodes.lua
@@ -0,0 +1,16 @@
+
+return {
+ -- Defined by JSON RPC
+ ParseError = -32700,
+ InvalidRequest = -32600,
+ MethodNotFound = -32601,
+ InvalidParams = -32602,
+ InternalError = -32603,
+ serverErrorStart = -32099,
+ serverErrorEnd = -32000,
+ ServerNotInitialized = -32002,
+ UnknownErrorCode = -32001,
+
+ -- Defined by the protocol.
+ RequestCancelled = -32800,
+}