aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/ErrorCode.java
blob: 8c2861ca72a4d7dabe1a3d506e51e35b95cb3632 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;


/**
 * This class contains the error codes defined by the RPC
 * protocol. The error code associated with a request is obtained
 * through the {@link Request#errorCode} method. Note that according to
 * the RPC protocol, applications may define custom error codes with
 * values 65536 (0x10000) and greater.
 **/
public class ErrorCode
{
    /** No error (0) **/
    public static final int NONE            =   0;

    /** General error (100) **/
    public static final int GENERAL_ERROR   = 100;

    /** Not implemented (101) **/
    public static final int NOT_IMPLEMENTED = 101;

    /** Invocation aborted (102) **/
    public static final int ABORT           = 102;

    /** Invocation timed out (103) **/
    public static final int TIMEOUT         = 103;

    /** Connection error (104) **/
    public static final int CONNECTION      = 104;

    /** Bad request packet (105) **/
    public static final int BAD_REQUEST     = 105;

    /** No such method (106) **/
    public static final int NO_SUCH_METHOD  = 106;

    /** Illegal parameters (107) **/
    public static final int WRONG_PARAMS    = 107;

    /** Request dropped due to server overload (108) **/
    public static final int OVERLOAD        = 108;

    /** Illegal return values (109) **/
    public static final int WRONG_RETURN    = 109;

    /** Bad reply packet (110) **/
    public static final int BAD_REPLY       = 110;

    /** Method failed (111) **/
    public static final int METHOD_FAILED   = 111;

    /** Permission denied (112) **/
    public static final int PERMISSION_DENIED = 112;
}