⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opcexception.java

📁 用于串口通讯测试的工具软件。完全使用java语言编写。
💻 JAVA
字号:
package com.zcsoft.opc;

/**
 * <p>Title: 串口通信</p>
 * <p>Description: 串口通信实验</p>
 * <p>Copyright: Copyright (c) 2004-2005</p>
 * <p>Company: Zhicheng Software&Service Co. Ltd.</p>
 * @author 蒋智湘
 * @version 1.0
 */
/** OPC操作异常 */
public class OpcException extends RuntimeException
{
	/** 本地程序返回的错误编码 */
	private int errorCode;

	public OpcException()
	{
		super();
	}

	public OpcException(String msg)
	{
		super(msg);
	}


	public OpcException(int errorCode)
	{
		super();
		this.errorCode = errorCode;
	}

	public OpcException(int errorCode, String msg)
	{
		super(msg);
		this.errorCode = errorCode;
	}


	public int getErrorCode()
	{
		return errorCode;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -