View Javadoc
1   /*
2    *    Copyright 2016-2025 the original author or 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    *       https://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  package org.mybatis.dynamic.sql.util;
17  
18  /**
19   * Enum for managing internal error numbers.
20   */
21  public enum InternalError {
22      INTERNAL_ERROR_1(1),
23      INTERNAL_ERROR_2(2),
24      INTERNAL_ERROR_3(3),
25      INTERNAL_ERROR_4(4),
26      INTERNAL_ERROR_5(5),
27      INTERNAL_ERROR_6(6),
28      INTERNAL_ERROR_7(7),
29      INTERNAL_ERROR_8(8),
30      INTERNAL_ERROR_9(9),
31      INTERNAL_ERROR_10(10),
32      INTERNAL_ERROR_11(11),
33      INTERNAL_ERROR_12(12),
34      INTERNAL_ERROR_13(13),
35      INTERNAL_ERROR_14(14),
36      INTERNAL_ERROR_15(15);
37  
38      private final int number;
39  
40      InternalError(int number) {
41          this.number = number;
42      }
43  
44      public int getNumber() {
45          return number;
46      }
47  }