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 EWhiteListControlDevException { 022 023 /** 024 * <div class="zh"> 无权限异常 </div> <div class="en"> no permission error </div> 025 */ 026 NO_PERMISSION_CALL_ERROR(-52, "no permission error", "无调用权限"), 027 /** 028 * <div class="zh">服务不可用错误</div> <div class="en">service not available</div> 029 */ 030 SERVICE_NOT_AVAILABLE(1, "service not available", "服务不可用错误") 031 ; 032 033 private int errCodeFromBasement; 034 private String errMsgCn; 035 private String errMsgEn; 036 037 private EWhiteListControlDevException(int errCodeFromBasement, String errMsgEn, String errMsnCn) { 038 this.errCodeFromBasement = errCodeFromBasement; 039 this.errMsgCn = errMsnCn; 040 this.errMsgEn = errMsgEn; 041 } 042 043 public int getErrCodeFromBasement() { 044 return errCodeFromBasement; 045 } 046 047 public String getErrMsg() { 048 if (Utils.isZh()) { 049 return errMsgCn; 050 } else { 051 return errMsgEn; 052 } 053 054 } 055 056}