emul/src/main/java/java/net/MalformedURLException.java
author Jaroslav Tulach <jtulach@netbeans.org>
Tue, 30 Oct 2012 09:14:17 +0100
branchjdk7-b147
changeset 121 b93908ede23a
permissions -rw-r--r--
Few more classes needed for ClassLoader and Class methods
jtulach@121
     1
/*
jtulach@121
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jtulach@121
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jtulach@121
     4
 *
jtulach@121
     5
 * This code is free software; you can redistribute it and/or modify it
jtulach@121
     6
 * under the terms of the GNU General Public License version 2 only, as
jtulach@121
     7
 * published by the Free Software Foundation.  Oracle designates this
jtulach@121
     8
 * particular file as subject to the "Classpath" exception as provided
jtulach@121
     9
 * by Oracle in the LICENSE file that accompanied this code.
jtulach@121
    10
 *
jtulach@121
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jtulach@121
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jtulach@121
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jtulach@121
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jtulach@121
    15
 * accompanied this code).
jtulach@121
    16
 *
jtulach@121
    17
 * You should have received a copy of the GNU General Public License version
jtulach@121
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jtulach@121
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jtulach@121
    20
 *
jtulach@121
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jtulach@121
    22
 * or visit www.oracle.com if you need additional information or have any
jtulach@121
    23
 * questions.
jtulach@121
    24
 */
jtulach@121
    25
jtulach@121
    26
package java.net;
jtulach@121
    27
jtulach@121
    28
import java.io.IOException;
jtulach@121
    29
jtulach@121
    30
/**
jtulach@121
    31
 * Thrown to indicate that a malformed URL has occurred. Either no
jtulach@121
    32
 * legal protocol could be found in a specification string or the
jtulach@121
    33
 * string could not be parsed.
jtulach@121
    34
 *
jtulach@121
    35
 * @author  Arthur van Hoff
jtulach@121
    36
 * @since   JDK1.0
jtulach@121
    37
 */
jtulach@121
    38
public class MalformedURLException extends IOException {
jtulach@121
    39
    private static final long serialVersionUID = -182787522200415866L;
jtulach@121
    40
jtulach@121
    41
    /**
jtulach@121
    42
     * Constructs a <code>MalformedURLException</code> with no detail message.
jtulach@121
    43
     */
jtulach@121
    44
    public MalformedURLException() {
jtulach@121
    45
    }
jtulach@121
    46
jtulach@121
    47
    /**
jtulach@121
    48
     * Constructs a <code>MalformedURLException</code> with the
jtulach@121
    49
     * specified detail message.
jtulach@121
    50
     *
jtulach@121
    51
     * @param   msg   the detail message.
jtulach@121
    52
     */
jtulach@121
    53
    public MalformedURLException(String msg) {
jtulach@121
    54
        super(msg);
jtulach@121
    55
    }
jtulach@121
    56
}