1 |
/* UnsupportedClassVersionError.java |
/* UnsupportedClassVersionError.java -- thrown when a class file version |
2 |
Copyright (C) 1998 Free Software Foundation, Inc. |
exceeds the capability of the virtual machine |
3 |
|
Copyright (C) 1998, 2002 Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
6 |
|
|
8 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
9 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
10 |
any later version. |
any later version. |
11 |
|
|
12 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
13 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
44 |
* Java Virtual Machine determines it does not support the major and minor |
* Java Virtual Machine determines it does not support the major and minor |
45 |
* version numbers in the class file it is attempting to read. |
* version numbers in the class file it is attempting to read. |
46 |
* |
* |
|
* @since JDK 1.2 |
|
|
* |
|
47 |
* @author Brian Jones |
* @author Brian Jones |
48 |
|
* @since 1.2 |
49 |
|
* @status updated to 1.4 |
50 |
*/ |
*/ |
51 |
public class UnsupportedClassVersionError extends ClassFormatError |
public class UnsupportedClassVersionError extends ClassFormatError |
52 |
{ |
{ |
53 |
static final long serialVersionUID = -7123279212883497373L; |
/** |
54 |
|
* Compatible with JDK 1.2+. |
55 |
|
*/ |
56 |
|
private static final long serialVersionUID = -7123279212883497373L; |
57 |
|
|
58 |
/** |
/** |
59 |
* Create an error without a message. |
* Create an error without a message. |
60 |
*/ |
*/ |
61 |
public UnsupportedClassVersionError() |
public UnsupportedClassVersionError() |
62 |
{ |
{ |
63 |
super(); |
} |
|
} |
|
64 |
|
|
65 |
/** |
/** |
66 |
* Create an error with a message. |
* Create an error with a message. |
67 |
|
* |
68 |
|
* @param s the message |
69 |
*/ |
*/ |
70 |
public UnsupportedClassVersionError(String s) |
public UnsupportedClassVersionError(String s) |
71 |
{ |
{ |
72 |
super(s); |
super(s); |
73 |
} |
} |
74 |
} |
} |