Skip to content

ErrorCodes

[Source]

primitive val ErrorCodes

Constructors

create

[Source]

new val create()
: ErrorCodes val^

Returns


Public Functions

parse_error

[Source]

fun box parse_error()
: I64 val

Returns


invalid_request

[Source]

fun box invalid_request()
: I64 val

Returns


method_not_found

[Source]

fun box method_not_found()
: I64 val

Returns


invalid_params

[Source]

fun box invalid_params()
: I64 val

Returns


internal_error

[Source]

fun box internal_error()
: I64 val

Returns


server_not_initialized

[Source]

Error code indicating that a server received a notification or request before the server has received the initialize request.

fun box server_not_initialized()
: I64 val

Returns


unknown_error_code

[Source]

fun box unknown_error_code()
: I64 val

Returns


request_failed

[Source]

A request failed but it was syntactically correct, e.g the method name was known and the parameters were valid. The error message should contain human readable information about why the request failed.

fun box request_failed()
: I64 val

Returns


server_cancelled

[Source]

The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.

fun box server_cancelled()
: I64 val

Returns


content_modified

[Source]

The server detected that the content of a document got modified outside normal conditions. A server should NOT send this error code if it detects a content change in it unprocessed messages. The result even computed on an older state might still be useful for the client. If a client decides that a result is not of any use anymore the client should cancel the request.

fun box content_modified()
: I64 val

Returns


request_cancelled

[Source]

The client has canceled a request and a server has detected the cancel.

fun box request_cancelled()
: I64 val

Returns


eq

[Source]

fun box eq(
  that: ErrorCodes val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: ErrorCodes val)
: Bool val

Parameters

Returns