20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.net;
27
28 import java.io.IOException;
29
30 /**
31 * Thrown to indicate that an unknown service exception has
32 * occurred. Either the MIME type returned by a URL connection does
33 * not make sense, or the application is attempting to write to a
34 * read-only URL connection.
35 *
36 * @author unascribed
37 * @since 1.0
38 */
39 public class UnknownServiceException extends IOException {
40 private static final long serialVersionUID = -4169033248853639508L;
41
42 /**
43 * Constructs a new {@code UnknownServiceException} with no
44 * detail message.
45 */
46 public UnknownServiceException() {
47 }
48
49 /**
50 * Constructs a new {@code UnknownServiceException} with the
51 * specified detail message.
52 *
53 * @param msg the detail message.
54 */
55 public UnknownServiceException(String msg) {
56 super(msg);
57 }
58 }
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.net;
27
28 import java.io.IOException;
29
30 /**
31 * Thrown to indicate that an unknown service exception has
32 * occurred. Either the MIME type returned by a URL connection does
33 * not make sense, or the application is attempting to write to a
34 * read-only URL connection.
35 *
36 * @author unascribed
37 * @since 1.0
38 */
39 public class UnknownServiceException extends IOException {
40 @java.io.Serial
41 private static final long serialVersionUID = -4169033248853639508L;
42
43 /**
44 * Constructs a new {@code UnknownServiceException} with no
45 * detail message.
46 */
47 public UnknownServiceException() {
48 }
49
50 /**
51 * Constructs a new {@code UnknownServiceException} with the
52 * specified detail message.
53 *
54 * @param msg the detail message.
55 */
56 public UnknownServiceException(String msg) {
57 super(msg);
58 }
59 }
|