KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > DebugException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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 org.eclipse.debug.core;
12
13
14  
15 import org.eclipse.core.runtime.CoreException;
16 import org.eclipse.core.runtime.IStatus;
17
18
19 /**
20  * A checked exception representing a failure.
21  * <p>
22  * Defines status codes relevant to the debug plug-in. When a
23  * debug exception is thrown, it contains a status object describing
24  * the cause of the exception. The status objects originating from the
25  * debug plug-in use the codes defined in this class.
26  * </p>
27  * <p>
28  * Clients may instantiate this class. Clients are not intended to subclass this class.
29  * </p>
30  * @see IStatus
31  */

32 public class DebugException extends CoreException {
33     
34     /**
35      * All objects that can be serialized should have a stable serialVersionUID
36      */

37     private static final long serialVersionUID = 1L;
38     
39     /**
40      * Indicates a request made of a debug element has failed
41      * on the target side.
42      */

43     public static final int TARGET_REQUEST_FAILED = 5010;
44      
45     /**
46      * Indicates a request is not supported by the capabilities of a debug element.
47      * For example, a request was made to terminate an element that does not
48      * support termination.
49      */

50     public static final int NOT_SUPPORTED = 5011;
51
52     /**
53      * Indicates that a request made of manager has failed, or a request made of a
54      * debug element has failed on the client side (that is, before the request was
55      * sent to the debug target).
56      */

57     public static final int REQUEST_FAILED = 5012;
58
59     /**
60      * Indicates an internal error. This is an unexpected state.
61      */

62     public static final int INTERNAL_ERROR = 5013;
63     
64     /**
65      * Indicates an improperly configured breakpoint. Breakpoints have a minimal
66      * set of required attributes as defined by the breakpoint manager.
67      *
68      * @see IBreakpointManager
69      */

70     public static final int CONFIGURATION_INVALID = 5014;
71     
72     /**
73      * Indicates a launch configuration could not be restored because its
74      * launch configuration type definition is missing.
75      *
76      * @since 3.0
77      */

78     public static final int MISSING_LAUNCH_CONFIGURATION_TYPE = 5020;
79     
80     /**
81      * Constructs a new debug exception with the given status object.
82      *
83      * @param status the status object describing this exception
84      * @see IStatus
85      */

86     public DebugException(IStatus status) {
87         super(status);
88     }
89
90 }
91
Popular Tags