KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdi > InternalException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package com.sun.jdi;
12
13
14 public class InternalException extends RuntimeException JavaDoc {
15     
16     /**
17      * All serializable objects should have a stable serialVersionUID
18      */

19     private static final long serialVersionUID = 1L;
20     
21     public InternalException() { }
22     
23     public InternalException(int errorCode) {
24         error = errorCode;
25     }
26     
27     public InternalException(java.lang.String JavaDoc s) {
28         super(s);
29     }
30     
31     public InternalException(java.lang.String JavaDoc s, int errorCode) {
32         super(s);
33         error = errorCode;
34     }
35     
36     public int errorCode() {
37         return error;
38     }
39     
40     private int error;
41 }
42
Popular Tags