1 22 23 package com.ice.jni.registry; 24 25 32 33 public class 34 RegistryException extends Exception 35 { 36 static public final String RCS_ID = "$Id: RegistryException.java,v 1.1 2002/03/14 09:57:21 deniger Exp $"; 37 static public final String RCS_REV = "$Revision: 1.1 $"; 38 static public final String RCS_NAME = "$Name: $"; 39 40 private int errorCode; 41 42 43 public 44 RegistryException() 45 { 46 super(); 47 this.errorCode = -1; 48 } 49 50 public 51 RegistryException( String msg ) 52 { 53 super( msg ); 54 this.errorCode = -1; 55 } 56 57 public 58 RegistryException( String msg, int regErr ) 59 { 60 super( msg ); 61 this.errorCode = regErr; 62 } 63 64 public int 65 getErrorCode() 66 { 67 return this.errorCode; 68 } 69 70 public void 71 setErrorCode( int errorCode ) 72 { 73 this.errorCode = errorCode; 74 } 75 76 } 77 78 79 | Popular Tags |