1 /*--------------------------------------------------------------------------------------- 2 * Class: com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes.java 3 * Date: 2020/12/22 4 * --------------------------------------------------------------------------------------- 5 * Copyright: Daniel Carda 6 * All Rights Reserved 7 * --------------------------------------------------------------------------------------- 8 * 9 * License: MIT license 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 12 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT ABILITY, FITNESS FOR A 13 * PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 14 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 15 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 16 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 17 */ 18 19 package com.cardatechnologies.utils.validators.abaroutevalidator; 20 21 /** 22 * <b>Description:</b><br> 23 * This class is used to run unit tests against the main code. 24 * 25 * @author Daniel Carda 26 * <br> 27 * <br><b>Maintenance History:</b> 28 * <br> 29 <pre> 30 yyyy mm dd Who Description 31 ---------- ------------------------ ---------------------------------------------------- 32 2015/12/22 JavaDan Initial Module Creation... 33 2020/12/20 JavaDan Updated formatting. 34 2021/08/01 Daniel Carda Improved Class Javadocs 35 </pre> 36 * <hr> 37 */ 38 public enum ErrorCodes { 39 ABA_1000(-1000, "com.cardatechnologies.aba.number.null"), 40 ABA_1001(-1001, "com.cardatechnologies.aba.number.blank"), 41 ABA_1002(-1002, "com.cardatechnologies.aba.number.too.short"), 42 ABA_1003(-1003, "com.cardatechnologies.aba.number.too.long"), 43 ABA_1004(-1004, "com.cardatechnologies.aba.number.not.numeric"), 44 ABA_1005(-1005, "com.cardatechnologies.aba.number.failed.federalcheck"); 45 46 private final int errorCode; 47 private final String errorMnemonic; 48 49 /** 50 * Constructs ... 51 * 52 * @param errorCode 53 * @param errorMnemonic 54 */ 55 ErrorCodes( int errorCode, 56 String errorMnemonic ) { 57 this.errorCode = errorCode; 58 this.errorMnemonic = errorMnemonic; 59 } 60 61 /** 62 * Method: getErrorCode 63 * 64 * @return int 65 */ 66 public int getErrorCode() { 67 return errorCode; 68 } 69 70 /** 71 * Method: getErrorMnemonic 72 * 73 * @return String 74 */ 75 public String getErrorMnemonic() { 76 return errorMnemonic; 77 } 78 } 79 80 /* --------------------------------------------------------------------------------------- 81 * Class: com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes.java 82 * Date: 2020/12/22 83 * --------------------------------------------------------------------------------------- */