Debian Codegraph @

pencil/include/pencil_error.h

raw
1 /* File: pencil_error.h; Copyright and License: see below */
2
3 #ifndef PENCIL_ERROR_H
4 #define PENCIL_ERROR_H
5
6 /* public file for the doxygen documentation: */
7 /*!
8 * \file
9 * \brief Notifies errors in the pencil module
10 */
11
12 #include "u8/u8_error.h"
13
14 /*!
15 * \brief error constants which explain errors which occurred in the pencil module
16 */
17 enum pencil_error_enum {
18 PENCIL_ERROR_NONE = 0, /*!< 0: success */
19 PENCIL_ERROR_OUT_OF_BOUNDS = U8_ERROR_PARAM_OUT_OF_RANGE, /*!< input parameters like coordinates are out of bounds */
20 PENCIL_ERROR_UNKNOWN_OBJECT = U8_ERROR_NOT_FOUND, /*!< referenced object id is not in current diagram */
21 };
22
23 typedef enum pencil_error_enum pencil_error_t;
24
25 #endif /* PENCIL_ERROR_H */
26
27
28 /*
29 Copyright 2017-2026 Andreas Warnke
30
31 Licensed under the Apache License, Version 2.0 (the "License");
32 you may not use this file except in compliance with the License.
33 You may obtain a copy of the License at
34
35 http://www.apache.org/licenses/LICENSE-2.0
36
37 Unless required by applicable law or agreed to in writing, software
38 distributed under the License is distributed on an "AS IS" BASIS,
39 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 See the License for the specific language governing permissions and
41 limitations under the License.
42 */