berexception.java
来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 51 行
JAVA
51 行
/* * @(#)file BerException.java * @(#)author Sun Microsystems, Inc. * @(#)version 4.12 * @(#)date 07/09/25 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */package com.sun.jmx.snmp;/** * Exception thrown when a BER encoding/decoding error occurs. * * <p><b>This API is a Sun Microsystems internal API and is subject * to change without notice.</b></p> * @version 4.12 12/19/03 * @author Sun Microsystems, Inc * * @since 1.5 */public class BerException extends Exception { public static final int BAD_VERSION=1; private int errorType= 0; public BerException() { errorType= 0; } public BerException(int x) { errorType= x; } public boolean isInvalidSnmpVersion() { if (errorType == BAD_VERSION) return true; else return false; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?