View Javadoc
1   /*---------------------------------------------------------------------------------------
2    * Class:  com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes.java
3    * Date:   2020/12/22
4    * ---------------------------------------------------------------------------------------
5    *
6    *  License: Apache 2.0
7    *
8    *  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
9    *  this file except in compliance with the License.
10   *
11   *  You may obtain a copy of the License at
12   *
13   *    http://www.apache.org/licenses/LICENSE-2.0
14   *
15   *  Unless required by applicable law or agreed to in writing, software distributed under
16   *  the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
17   *  OF ANY KIND, either express or implied including the implied warranties of
18   *  merchantability and fitness for a particular purpose.
19   *
20   *  See the License for the specific language governing permissions and
21   *  limitations under the License.
22   */
23  package com.cardatechnologies.utils.validators.abaroutevalidator;
24  
25  /**
26   * <b>Description:</b><br>
27   *     This class is used to run unit tests against the main code.
28   *
29   * @author     Daniel Carda
30   * <br>
31   * <br><b>Maintenance History:</b>
32   * <br>
33  <pre>
34      yyyy mm dd  Who                       Description
35      ----------  ------------------------  ----------------------------------------------------
36      2015/12/22  JavaDan                   Initial Module Creation...
37      2020/12/20  JavaDan                   Updated formatting.
38      2021/08/01  Daniel Carda              Improved Class Javadocs
39  </pre>
40   * <hr>
41   */
42  public enum ErrorCodes {
43      ABA_1000(-1000, "com.cardatechnologies.aba.number.null"),
44      ABA_1001(-1001, "com.cardatechnologies.aba.number.blank"),
45      ABA_1002(-1002, "com.cardatechnologies.aba.number.too.short"),
46      ABA_1003(-1003, "com.cardatechnologies.aba.number.too.long"),
47      ABA_1004(-1004, "com.cardatechnologies.aba.number.not.numeric"),
48      ABA_1005(-1005, "com.cardatechnologies.aba.number.failed.federalcheck");
49  
50      private final int    errorCode;
51      private final String errorMnemonic;
52  
53      /**
54       * Constructs ...
55       *
56       * @param errorCode
57       * @param errorMnemonic
58       */
59      ErrorCodes( int    errorCode,
60                  String errorMnemonic ) {
61          this.errorCode     = errorCode;
62          this.errorMnemonic = errorMnemonic;
63      }
64  
65      /**
66       * Method: getErrorCode
67       *
68       * @return int
69       */
70      public int getErrorCode() {
71          return errorCode;
72      }
73  
74      /**
75       * Method: getErrorMnemonic
76       *
77       * @return String
78       */
79      public String getErrorMnemonic() {
80          return errorMnemonic;
81      }
82  }
83  
84  /* ---------------------------------------------------------------------------------------
85   *  License: Apache 2.0
86   *
87   *  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
88   *  this file except in compliance with the License.
89   *
90   *  You may obtain a copy of the License at
91   *
92   *    http://www.apache.org/licenses/LICENSE-2.0
93   *
94   *  Unless required by applicable law or agreed to in writing, software distributed under
95   *  the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
96   *  OF ANY KIND, either express or implied including the implied warranties of
97   *  merchantability and fitness for a particular purpose.
98   *
99   *  See the License for the specific language governing permissions and
100  *  limitations under the License.
101  *
102  * ---------------------------------------------------------------------------------------
103  * Class:  com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes.java
104  * Date:   2020/12/22
105  * --------------------------------------------------------------------------------------- */