jdk/src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java
changeset 45564 0149773a140c
parent 34894 3248b89d1921
equal deleted inserted replaced
45563:ece4ae6beba3 45564:0149773a140c
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    37  * @since  1.3
    37  * @since  1.3
    38  */
    38  */
    39 public class IllegalConnectorArgumentsException extends Exception {
    39 public class IllegalConnectorArgumentsException extends Exception {
    40 
    40 
    41     private static final long serialVersionUID = -3042212603611350941L;
    41     private static final long serialVersionUID = -3042212603611350941L;
       
    42 
    42     List<String> names;
    43     List<String> names;
    43 
    44 
    44     /**
    45     /**
    45      * Construct an <code>IllegalConnectorArgumentsException</code>
    46      * Construct an <code>IllegalConnectorArgumentsException</code>
    46      * with the specified detail message and the name of the argument
    47      * with the specified detail message and the name of the argument
    47      * which is invalid or inconsistent.
    48      * which is invalid or inconsistent.
    48      * @param s the detailed message.
    49      * @param s the detailed message.
    49      * @param name the name of the invalid or inconsistent argument.
    50      * @param name the name of the invalid or inconsistent argument.
    50      */
    51      */
    51     public IllegalConnectorArgumentsException(String s,
    52     public IllegalConnectorArgumentsException(String s, String name) {
    52                                               String name) {
       
    53         super(s);
    53         super(s);
    54         names = new ArrayList<String>(1);
    54         names = new ArrayList<String>(1);
    55         names.add(name);
    55         names.add(name);
    56     }
    56     }
    57 
    57 
    63      * @param names a <code>List</code> containing the names of the
    63      * @param names a <code>List</code> containing the names of the
    64      * invalid or inconsistent argument.
    64      * invalid or inconsistent argument.
    65      */
    65      */
    66     public IllegalConnectorArgumentsException(String s, List<String> names) {
    66     public IllegalConnectorArgumentsException(String s, List<String> names) {
    67         super(s);
    67         super(s);
    68 
       
    69         this.names = new ArrayList<String>(names);
    68         this.names = new ArrayList<String>(names);
    70     }
    69     }
    71 
    70 
    72     /**
    71     /**
    73      * Return a <code>List</code> containing the names of the
    72      * Return a <code>List</code> containing the names of the