KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdi > connect > IllegalConnectorArgumentsException


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.connect;
12
13
14 import java.util.ArrayList JavaDoc;
15 import java.util.List JavaDoc;
16
17 public class IllegalConnectorArgumentsException extends Exception JavaDoc {
18     
19     /**
20      * All serializable objects should have a stable serialVersionUID
21      */

22     private static final long serialVersionUID = 1L;
23     
24     List JavaDoc fNames;
25     
26     public IllegalConnectorArgumentsException(String JavaDoc message, List JavaDoc argNames) {
27         super(message);
28         fNames = argNames;
29     }
30     
31     public IllegalConnectorArgumentsException(String JavaDoc message, String JavaDoc argName) {
32         super(message);
33         fNames = new ArrayList JavaDoc(1);
34         fNames.add(argName);
35     }
36     
37     public List JavaDoc argumentNames() {
38         return fNames;
39     }
40 }
41
Popular Tags