001/* 002* =========================================================================================== 003* = COPYRIGHT 004* PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005* This software is supplied under the terms of a license agreement or nondisclosure 006* agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007* disclosed except in accordance with the terms in that agreement. 008* Copyright (C) 2017-2024 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009* Description: // Detail description about the function of this module, 010* // interfaces with the other modules, and dependencies. 011* Revision History: 012* Date Author Action 013* 2024/09/24 PAX Create/Add/Modify/Delete 014* =========================================================================================== 015*/ 016 017package com.pax.dal.exceptions; 018 019import com.pax.dal.utils.Utils; 020 021public enum EWLEKUDevException { 022 023 /** 024 * <div class="zh"> 类型错误 </div> <div class="en"> type error </div> 025 */ 026 EKU_TYPE_ERROR(-10, "type error", "类型错误"), 027 /** 028 * <div class="zh">格式化正在运行</div> <div class="en">formatting is running</div> 029 */ 030 FORMAT_TASK_RUNNING(-54, "formatting is running", "格式化正在运行"), 031 /** 032 * <div class="zh">无调用权限</div> <div class="en">no permission error</div> 033 */ 034 NO_PERMISSION_CALL_ERROR(-52, "no permission error", "无调用权限"), 035 /** 036 * <div class="zh">服务不可用错误</div> <div class="en">service not available</div> 037 */ 038 SERVICE_NOT_AVAILABLE(1, "service not available", "服务不可用错误") 039 ; 040 041 private int errCodeFromBasement; 042 private String errMsgCn; 043 private String errMsgEn; 044 045 private EWLEKUDevException(int errCodeFromBasement, String errMsgEn, String errMsnCn) { 046 this.errCodeFromBasement = errCodeFromBasement; 047 this.errMsgCn = errMsnCn; 048 this.errMsgEn = errMsgEn; 049 } 050 051 public int getErrCodeFromBasement() { 052 return errCodeFromBasement; 053 } 054 055 public String getErrMsg() { 056 if (Utils.isZh()) { 057 return errMsgCn; 058 } else { 059 return errMsgEn; 060 } 061 062 } 063 064}