Debian Codegraph @

src/com/google/javascript/jscomp/webservice/common/ErrorCode.java

raw symbols SCIP
1 /*
2 * Copyright 2009 The Closure Compiler Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.google.javascript.jscomp.webservice.common;
18
19 /**
20 * Enum of all the possible error described in the Web Service protocol.
21 *
22 */
23 public enum ErrorCode {
24 UNKNOWN_OUTPUT_MODE(2),
25 UNKNOWN_API_KEY(3),
26 UNKNOWN_COMPILATION_LEVEL(4),
27 UNKNOWN_CHARSET(5),
28 POST_DATA_TOO_LARGE(8),
29 FILE_TOO_LARGE(9),
30 UNREACHABLE_URL(10),
31 MALFORMED_URL(12),
32 NO_OUTPUT_INFO(13),
33 UNKNOWN_OUTPUT_INFO(14),
34 MISSING_API_KEY(15),
35 UNKNOWN_WARNING_LEVEL(16),
36 UNKNOWN_FORMATTING_OPTION(17),
37 UNKNOWN_PARAMETER(18),
38 ILLEGAL_OUTPUT_FILE_NAME(19),
39 HASH_MISMATCH(20),
40 NO_CODE_FOUND_IN_CACHE(21),
41 ACCOUNT_OVER_QUOTA(22),
42 COMPILER_EXCEPTION(23),
43 UNSUPPORTED_INPUT_RESOURCE_TYPE(24),
44 DOWNLOAD_OVER_QUOTA(25),
45 ;
46
47 private final int code;
48 ErrorCode(int code) {
49 this.code = code;
50 }
51
52 public int getCode() {
53 return code;
54 }
55 }