📄 registryexception.java
字号:
/*
** Java native interface to the Windows Registry API.
**
** Authored by Timothy Gerard Endres
** <mailto:time@gjt.org> <http://www.trustice.com>
**
** This work has been placed into the public domain.
** You may use this work in any way and for any purpose you wish.
**
** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
** REDISTRIBUTION OF THIS SOFTWARE.
**
*/
package com.ice.jni.registry;
/**
* This exception is used to indicate that no such key exists in the registry.
*
*
* @version 3.1.3
*
* @author Timothy Gerard Endres,
* <a href="mailto:time@ice.com">time@ice.com</a>.
*/
public class
RegistryException extends Exception
{
static public final String RCS_ID = "$Id: RegistryException.java,v 1.1.1.1 1998/02/22 00:37:22 time Exp $";
static public final String RCS_REV = "$Revision: 1.1.1.1 $";
static public final String RCS_NAME = "$Name: $";
private int errorCode;
public
RegistryException()
{
super();
this.errorCode = -1;
}
public
RegistryException( String msg )
{
super( msg );
this.errorCode = -1;
}
public
RegistryException( String msg, int regErr )
{
super( msg );
this.errorCode = regErr;
}
public int
getErrorCode()
{
return this.errorCode;
}
public void
setErrorCode( int errorCode )
{
this.errorCode = errorCode;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -