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
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.protect;
/**
* Error codes to use in ErrorMessage instances for container applications.
*
* @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
*/
public enum Error {
NO_BACKENDS_IN_SERVICE(0),
NULL_QUERY(1),
REQUEST_TOO_LARGE(2),
ILLEGAL_QUERY(3),
INVALID_QUERY_PARAMETER(4),
UNSPECIFIED(5),
ERROR_IN_PLUGIN(6),
INVALID_QUERY_TRANSFORMATION(7),
RESULT_HAS_ERRORS(8),
SERVER_IS_MISCONFIGURED(9),
BACKEND_COMMUNICATION_ERROR(10),
NO_ANSWER_WHEN_PINGING_NODE(11),
TIMEOUT(12),
EMPTY_DOCUMENTS(13),
UNAUTHORIZED(14),
FORBIDDEN(15),
NOT_FOUND(16),
BAD_REQUEST(17),
INTERNAL_SERVER_ERROR(18);
public final int code;
Error(int code) {
this.code = code;
}
}
|