/* ** 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.newatlanta.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 { private static final long serialVersionUID = 1L; static public final String RCS_ID = "$Id: RegistryException.java,v 1.1 2008/05/09 09:49:28 openbd Exp $"; static public final String RCS_REV = "$Revision: 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; } }