]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | /* |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
18 | */ | |
19 | ||
20 | #pragma once | |
21 | ||
22 | #include <glib-object.h> | |
23 | ||
24 | G_BEGIN_DECLS | |
25 | ||
26 | /** | |
27 | * GArrowError: | |
28 | * @GARROW_ERROR_OUT_OF_MEMORY: Out of memory error. | |
29 | * @GARROW_ERROR_KEY: Key error. | |
30 | * @GARROW_ERROR_TYPE: Type error. | |
31 | * @GARROW_ERROR_INVALID: Invalid value error. | |
32 | * @GARROW_ERROR_IO: IO error. | |
33 | * @GARROW_ERROR_CAPACITY: Capacity error. | |
34 | * @GARROW_ERROR_INDEX: Index error. | |
35 | * @GARROW_ERROR_UNKNOWN: Unknown error. | |
36 | * @GARROW_ERROR_NOT_IMPLEMENTED: The feature is not implemented. | |
37 | * @GARROW_ERROR_SERIALIZATION: Serialization error. | |
38 | * @GARROW_ERROR_CODE_GENERATION: Error generating code for expression evaluation | |
39 | * in Gandiva. | |
40 | * @GARROW_ERROR_EXPRESSION_VALIDATION: Validation errors in expression given for code generation. | |
41 | * @GARROW_ERROR_EXECUTION: Execution error while evaluating the expression against a record batch. | |
42 | * @GARROW_ERROR_ALREADY_EXISTS: Item already exists error. | |
43 | * | |
44 | * The error codes are used by all arrow-glib functions. | |
45 | * | |
46 | * They are corresponding to `arrow::Status` values. | |
47 | */ | |
48 | typedef enum { | |
49 | GARROW_ERROR_OUT_OF_MEMORY = 1, | |
50 | GARROW_ERROR_KEY, | |
51 | GARROW_ERROR_TYPE, | |
52 | GARROW_ERROR_INVALID, | |
53 | GARROW_ERROR_IO, | |
54 | GARROW_ERROR_CAPACITY, | |
55 | GARROW_ERROR_INDEX, | |
56 | GARROW_ERROR_UNKNOWN = 9, | |
57 | GARROW_ERROR_NOT_IMPLEMENTED, | |
58 | GARROW_ERROR_SERIALIZATION, | |
59 | GARROW_ERROR_CODE_GENERATION = 40, | |
60 | GARROW_ERROR_EXPRESSION_VALIDATION = 41, | |
61 | GARROW_ERROR_EXECUTION = 42, | |
62 | GARROW_ERROR_ALREADY_EXISTS = 45, | |
63 | } GArrowError; | |
64 | ||
65 | #define GARROW_ERROR garrow_error_quark() | |
66 | ||
67 | GQuark garrow_error_quark(void); | |
68 | ||
69 | G_END_DECLS |