Makefile.in: Rebuilt.
* Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added UnsupportedClassVersionError. * java/lang/UnsupportedClassVersionError.java: New file from Classpath. * java/io/CharConversionException.java, java/io/EOFException.java, java/io/FileNotFoundException.java, java/io/IOException.java, java/io/InterruptedIOException.java, java/io/ObjectStreamException.java, java/io/OptionalDataException.java, java/io/StreamCorruptedException.java, java/io/SyncFailedException.java, java/io/UTFDataFormatException.java, java/io/UnsupportedEncodingException.java, java/lang/AbstractMethodError.java, java/lang/ArithmeticException.java, java/lang/ArrayIndexOutOfBoundsException.java, java/lang/ArrayStoreException.java, java/lang/ClassCastException.java, java/lang/ClassCircularityError.java, java/lang/ClassFormatError.java, java/lang/CloneNotSupportedException.java, java/lang/Error.java, java/lang/Exception.java, java/lang/ExceptionInInitializerError.java, java/lang/IllegalAccessError.java, java/lang/IllegalAccessException.java, java/lang/IllegalArgumentException.java, java/lang/IllegalMonitorStateException.java, java/lang/IllegalStateException.java, java/lang/IllegalThreadStateException.java, java/lang/IncompatibleClassChangeError.java, java/lang/IndexOutOfBoundsException.java, java/lang/InstantiationError.java, java/lang/InstantiationException.java, java/lang/InternalError.java, java/lang/InterruptedException.java, java/lang/LinkageError.java, java/lang/NegativeArraySizeException.java, java/lang/NoClassDefFoundError.java, java/lang/NoSuchFieldError.java, java/lang/NoSuchFieldException.java, java/lang/NoSuchMethodError.java, java/lang/NoSuchMethodException.java, java/lang/NullPointerException.java, java/lang/NumberFormatException.java, java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java, java/lang/SecurityException.java, java/lang/StackOverflowError.java, java/lang/StringIndexOutOfBoundsException.java, java/lang/ThreadDeath.java, java/lang/UnknownError.java, java/lang/UnsatisfiedLinkError.java, java/lang/UnsupportedOperationException.java, java/lang/VerifyError.java, java/lang/VirtualMachineError.java, java/lang/reflect/InvocationTargetException.java, java/net/BindException.java, java/net/ConnectException.java, java/net/MalformedURLException.java, java/net/NoRouteToHostException.java, java/net/ProtocolException.java, java/net/SocketException.java, java/net/UnknownHostException.java, java/net/UnknownServiceException.java, java/text/ParseException.java: Copied from Classpath, thanks to Mark Wielaard who did the merge. * java/lang/System.java (getProperty): Use single argument form of SecurityManager.checkPropertyAccess. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added VMSecurityManager. * java/lang/VMSecurityManager.java: New file. * java/lang/SecurityManager.java: Merged with Classpath. From-SVN: r45353
This commit is contained in:
parent
9e0e11bfe4
commit
7eee682ba8
70 changed files with 4654 additions and 1547 deletions
|
@ -1,34 +1,75 @@
|
|||
// CharConversionException.java - Problem converting char to byte encoding.
|
||||
/* CharConversionException.java -- Character conversion exceptions
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 25, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown to indicate that a problem occured with
|
||||
* an attempted character conversion.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 25, 1998
|
||||
*/
|
||||
public class CharConversionException extends IOException
|
||||
{
|
||||
public CharConversionException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public CharConversionException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new CharConversionException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
CharConversionException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new CharConversionException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
CharConversionException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class CharConversionException
|
||||
|
||||
|
|
|
@ -1,34 +1,79 @@
|
|||
// EOFException.java - End of file exception
|
||||
/* EOFException.java -- Unexpected end of file exception
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown when the end of the file or stream was
|
||||
* encountered unexpectedly. This is not the normal way that a normal
|
||||
* EOF condition is reported. Normally a special value such as -1 is
|
||||
* returned. However, certain types of streams expecting certain data
|
||||
* in a certain format might reach EOF before reading their expected
|
||||
* data pattern and thus throw this exception.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class EOFException extends IOException
|
||||
{
|
||||
public EOFException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public EOFException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new EOFException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
EOFException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new EOFException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
EOFException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class EOFException
|
||||
|
||||
|
|
|
@ -1,34 +1,75 @@
|
|||
// FileNotFoundException.java
|
||||
/* FileNotFoundException.java -- The requested file could not be found
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown when an attempt is made to access a file that
|
||||
* does not exist.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class FileNotFoundException extends IOException
|
||||
{
|
||||
public FileNotFoundException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public FileNotFoundException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new FileNotFoundException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
FileNotFoundException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new FileNotFoundException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
FileNotFoundException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class FileNotFoundException
|
||||
|
||||
|
|
|
@ -1,34 +1,77 @@
|
|||
// IOException.java - Base class for I/O Exceptions
|
||||
/* IOException.java -- Generic input/output exception
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown to indicate an I/O problem of some sort
|
||||
* occurred. Since this is a fairly generic exception, often a subclass
|
||||
* of IOException will actually be thrown in order to provide a more
|
||||
* detailed indication of what happened.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class IOException extends Exception
|
||||
{
|
||||
public IOException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public IOException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new IOException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
IOException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new IOException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
IOException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class IOException
|
||||
|
||||
|
|
|
@ -1,36 +1,104 @@
|
|||
// InterruptedIOException.java
|
||||
/* InterruptedIOException.java -- An I/O operation was interrupted.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown when a in process I/O operation is
|
||||
* interrupted for some reason. The field bytesTransferred will contain
|
||||
* the number of bytes that were read/written prior to the interruption.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class InterruptedIOException extends IOException
|
||||
{
|
||||
public InterruptedIOException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public InterruptedIOException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
private static final long serialVersionUID = 4020568460727500567L;
|
||||
|
||||
public int bytesTransferred = 0;
|
||||
/*
|
||||
* Instance Variables
|
||||
*/
|
||||
|
||||
/**
|
||||
* The number of bytes read/written prior to the interruption
|
||||
*/
|
||||
public int bytesTransferred;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new InterruptedIOException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
InterruptedIOException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new InterruptedIOException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
InterruptedIOException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new InterruptedIOException with a descriptive error message
|
||||
* String. Also sets the value of the bytesTransferred field.
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
* @param bytesTransferred The number of bytes tranferred before the interruption
|
||||
*/
|
||||
InterruptedIOException(String message, int bytesTransferred)
|
||||
{
|
||||
super(message);
|
||||
this.bytesTransferred = bytesTransferred;
|
||||
}
|
||||
|
||||
} // class InterruptedIOException
|
||||
|
||||
|
|
|
@ -1,31 +1,75 @@
|
|||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* ObjectStreamException.java -- Superclass of all serialisation exceptions
|
||||
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date February 7, 2000.
|
||||
*/
|
||||
|
||||
/* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
public abstract class ObjectStreamException extends IOException
|
||||
/**
|
||||
* This exception is thrown when a problem occurs during serialization.
|
||||
* There are more specific subclasses than give more fine grained
|
||||
* indications of the precise failure.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date February 7, 2000.
|
||||
*/
|
||||
public abstract class ObjectStreamException extends IOException
|
||||
{
|
||||
protected ObjectStreamException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
protected ObjectStreamException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new ObjectStreamException without a descriptive error message
|
||||
*/
|
||||
protected
|
||||
ObjectStreamException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new ObjectStreamException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
protected
|
||||
ObjectStreamException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class ObjectStreamException
|
||||
|
||||
|
|
|
@ -1,31 +1,74 @@
|
|||
/* Copyright (C) 2000 Free Software Foundation
|
||||
/* StreamCorruptedException.java -- Error in stream during serialization
|
||||
Copyright (C) 1998, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date February 7, 2000.
|
||||
*/
|
||||
|
||||
/* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This exception is thrown when there is an error in the data that is
|
||||
* read from a stream during de-serialization.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date February 7, 2000.
|
||||
*/
|
||||
public class StreamCorruptedException extends ObjectStreamException
|
||||
{
|
||||
public StreamCorruptedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public StreamCorruptedException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new StreamCorruptedException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
StreamCorruptedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new StreamCorruptedException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
StreamCorruptedException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class StreamCorruptedException
|
||||
|
||||
|
|
|
@ -1,29 +1,75 @@
|
|||
// SyncFailedException.java
|
||||
/* SyncFailedException.java -- The sync failed (?)
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* I really wish I knew what caused this exception to be thrown.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class SyncFailedException extends IOException
|
||||
{
|
||||
public SyncFailedException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = -2353342684412443330L;
|
||||
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new SyncFailedException without a descriptive error message
|
||||
*/
|
||||
SyncFailedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new SyncFailedException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
SyncFailedException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class SyncFailedException
|
||||
|
||||
|
|
|
@ -1,34 +1,75 @@
|
|||
// UTFDataFormatException.java
|
||||
/* UTFDataFormatException.java -- Bad format in UTF data
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.io;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Complete to 1.1.
|
||||
*/
|
||||
|
||||
/**
|
||||
* When reading a UTF string from an input stream, this exception is thrown
|
||||
* to indicate that the data read is invalid.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date September 24, 1998
|
||||
*/
|
||||
public class UTFDataFormatException extends IOException
|
||||
{
|
||||
public UTFDataFormatException ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
public UTFDataFormatException (String s)
|
||||
{
|
||||
super (s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new UTFDataFormatException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
UTFDataFormatException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new UTFDataFormatException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
UTFDataFormatException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class UTFDataFormatException
|
||||
|
||||
|
|
|
@ -1,32 +1,75 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* UnsupportedEncodingException.java -- The requested encoding isn't supported
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
package java.io;
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
/**
|
||||
* @author Per Bothner <bothner@cygnus.com>
|
||||
* @date April 17, 1998.
|
||||
*/
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.io;
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, plus online
|
||||
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This exception is thrown when the requested character encoding is
|
||||
* not supported.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Per Bothner <bothner@cygnus.com>
|
||||
* @date April 17, 1998.
|
||||
*/
|
||||
public class UnsupportedEncodingException extends IOException
|
||||
{
|
||||
public UnsupportedEncodingException ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public UnsupportedEncodingException (String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new UnsupportedEncodingException without a descriptive error message
|
||||
*/
|
||||
public
|
||||
UnsupportedEncodingException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Create a new UnsupportedEncodingException with a descriptive error message String
|
||||
*
|
||||
* @param message The descriptive error message
|
||||
*/
|
||||
public
|
||||
UnsupportedEncodingException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class UnsupportedEncodingException
|
||||
|
||||
|
|
|
@ -1,34 +1,67 @@
|
|||
// AbstractMethodError.java
|
||||
/* AbstractMethodError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>AbstractMethodError</code> is thrown when an application
|
||||
* attempts to access an abstract method. Compilers typically detect
|
||||
* this error, but it can be thrown at run time if the definition of a
|
||||
* class has changed since the application was last compiled.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class AbstractMethodError extends IncompatibleClassChangeError
|
||||
{
|
||||
public AbstractMethodError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -1654391082989018462L;
|
||||
|
||||
public AbstractMethodError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public AbstractMethodError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public AbstractMethodError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,68 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* ArithmeticException.java -- exception thrown to indicate conditions
|
||||
like divide by zero.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional circumstances.
|
||||
* In this case an ArithmeticException is thrown when things like trying
|
||||
* to divide a number by zero.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class ArithmeticException extends RuntimeException
|
||||
{
|
||||
public ArithmeticException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 2256477558314496007L;
|
||||
|
||||
public ArithmeticException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public ArithmeticException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public ArithmeticException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,37 +1,76 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* ArrayIndexOutOfBoundsException.java -- exception thrown when accessing
|
||||
an illegal index.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions, in this case
|
||||
* when trying to access an illegal index. This exception is thrown when
|
||||
* accessing an index which is either negative or greater than the size of
|
||||
* the array minus one.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
|
||||
{
|
||||
public ArrayIndexOutOfBoundsException()
|
||||
{
|
||||
static final long serialVersionUID = -5116101128118950844L;
|
||||
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public ArrayIndexOutOfBoundsException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ArrayIndexOutOfBoundsException(int index)
|
||||
{
|
||||
this("Array index out of range: " + index);
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public ArrayIndexOutOfBoundsException(String s) {
|
||||
super(s);
|
||||
}
|
||||
|
||||
public ArrayIndexOutOfBoundsException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
/**
|
||||
* Create an exception indicating the illegal index.
|
||||
*/
|
||||
public ArrayIndexOutOfBoundsException(int index) {
|
||||
super("Array index out of range: " + index);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,32 +1,67 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* ArrayStoreException.java -- exception thrown to when trying to store an
|
||||
object into an array of a different type.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions, in this case
|
||||
* when trying to store an object into an array of a different type.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class ArrayStoreException extends RuntimeException
|
||||
{
|
||||
public ArrayStoreException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -4522193890499838241L;
|
||||
|
||||
public ArrayStoreException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public ArrayStoreException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public ArrayStoreException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,72 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* ClassCastException.java -- exception thrown when incorrectly trying to
|
||||
cast an object to a subclass it does not belong to.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions. In this case
|
||||
* when incorrectly trying to cast an object to a subclass it does not
|
||||
* belong to. The following code generates a <code>ClassCastException</code>.
|
||||
* <pre>
|
||||
* Object o = new Vector();
|
||||
* String s = (String)o;
|
||||
* </pre>
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class ClassCastException extends RuntimeException
|
||||
{
|
||||
public ClassCastException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -9223365651070458532L;
|
||||
|
||||
public ClassCastException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public ClassCastException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public ClassCastException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,65 @@
|
|||
// ClassCircularityError.java
|
||||
/* ClassCircularityError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>ClassCircularityError</code> is thrown when a circular dependency
|
||||
* has been detected while initializing a class.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class ClassCircularityError extends LinkageError
|
||||
{
|
||||
public ClassCircularityError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 1054362542914539689L;
|
||||
|
||||
public ClassCircularityError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public ClassCircularityError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public ClassCircularityError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,64 @@
|
|||
// ClassFormatError.java
|
||||
/* ClassFormatError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>ClassFormatError</code> is thrown when a Java Virtual Machine
|
||||
* unable to read a class file because the file is corrupted or cannot be
|
||||
* interpreted as a class file.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
*/
|
||||
public class ClassFormatError extends LinkageError
|
||||
{
|
||||
public ClassFormatError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -8420114879011949195L;
|
||||
|
||||
public ClassFormatError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public ClassFormatError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public ClassFormatError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,71 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* CloneNotSupportedException.java -- exception thrown to indicate that
|
||||
the object calling the clone method of Object does not implement the
|
||||
Cloneable interface.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown to indicate an object should not or could not be cloned.
|
||||
* For example <code>CloneNotSupportedException</code> is thrown by
|
||||
* the <code>clone</code> method of <code>Object</code> to indicate
|
||||
* that object does not implement the <code>Cloneable</code> interface.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class CloneNotSupportedException extends Exception
|
||||
{
|
||||
public CloneNotSupportedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 5195511250079656443L;
|
||||
|
||||
public CloneNotSupportedException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public CloneNotSupportedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public CloneNotSupportedException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,71 @@
|
|||
// Error.java
|
||||
/* Error.java - Indication of fatal abnormal conditions
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Applications should not try to catch errors since they indicate
|
||||
* abnormal conditions. An abnormal condition is something which should not
|
||||
* occur. A few errors, like <code>ThreadDeath</code> error do normally
|
||||
* occur, but most applications should not catch it.
|
||||
* <p>
|
||||
* A method is not required to declare any subclass of <code>Error</code> in
|
||||
* its <code>throws</code> clause which might be thrown but not caught while
|
||||
* executing the method..
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class Error extends Throwable
|
||||
{
|
||||
public Error ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 4980196508277280342L;
|
||||
|
||||
public Error (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public Error()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public Error(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,67 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Exception.java -- generic exception thrown to indicate an exceptional
|
||||
condition has occurred.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with the cause of the exception, such as
|
||||
* mouse movements, keyboard clicking, etc.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class Exception extends Throwable
|
||||
{
|
||||
public Exception()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -3387516993124229948L;
|
||||
|
||||
public Exception(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public Exception()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public Exception(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,85 +1,144 @@
|
|||
// ExceptionInInitializerError.java
|
||||
/* ExceptionInInitializerError.java
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>ExceptionInInitializerError</code> is thrown when an
|
||||
* unexpected exception has occurred in a static initializer or the
|
||||
* initializer for a static variable.
|
||||
*
|
||||
* @since JDK 1.1
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class ExceptionInInitializerError extends LinkageError
|
||||
{
|
||||
public ExceptionInInitializerError ()
|
||||
{
|
||||
super ();
|
||||
exception = null;
|
||||
}
|
||||
static final long serialVersionUID = 1521711792217232256L;
|
||||
|
||||
public ExceptionInInitializerError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
exception = null;
|
||||
}
|
||||
private Throwable exception = null;
|
||||
|
||||
public ExceptionInInitializerError (Throwable e)
|
||||
{
|
||||
super (e.toString());
|
||||
exception = e;
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public ExceptionInInitializerError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public Throwable getException ()
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public ExceptionInInitializerError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
|
||||
public void printStackTrace ()
|
||||
{
|
||||
if (exception != null)
|
||||
{
|
||||
System.err.print (this.getClass().getName() + ": ");
|
||||
exception.printStackTrace ();
|
||||
}
|
||||
else
|
||||
super.printStackTrace ();
|
||||
}
|
||||
/**
|
||||
* Creates an error an saves a reference to the <code>Throwable</code>
|
||||
* object.
|
||||
*
|
||||
* @param t the exception thrown
|
||||
*/
|
||||
public ExceptionInInitializerError(Throwable t)
|
||||
{
|
||||
super(t.toString());
|
||||
exception = t;
|
||||
}
|
||||
|
||||
public void printStackTrace (PrintStream ps)
|
||||
{
|
||||
if (exception != null)
|
||||
{
|
||||
ps.print (this.getClass().getName() + ": ");
|
||||
exception.printStackTrace (ps);
|
||||
}
|
||||
else
|
||||
super.printStackTrace (ps);
|
||||
}
|
||||
/**
|
||||
* Return the exception that caused this error to be created.
|
||||
* @return the stored <code>Throwable</code> object or <code>null</code>
|
||||
* if this <code>ExceptionInInitializerError</code> has no stored
|
||||
* <code>Throwable</code> object.
|
||||
*/
|
||||
public Throwable getException()
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
|
||||
public void printStackTrace (PrintWriter pw)
|
||||
{
|
||||
if (exception != null)
|
||||
{
|
||||
pw.print (this.getClass().getName() + ": ");
|
||||
exception.printStackTrace (pw);
|
||||
}
|
||||
else
|
||||
super.printStackTrace (pw);
|
||||
}
|
||||
/**
|
||||
* Print a stack trace of the exception that occurred.
|
||||
*/
|
||||
public void printStackTrace()
|
||||
{
|
||||
if (exception == null)
|
||||
{
|
||||
super.printStackTrace();
|
||||
}
|
||||
else
|
||||
{
|
||||
System.err.print(this.getClass() + ": ");
|
||||
exception.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// The exception that caused this error.
|
||||
private Throwable exception;
|
||||
/**
|
||||
* Print a stack trace of the exception that occurred to
|
||||
* the specified <code>PrintStream</code>.
|
||||
*/
|
||||
public void printStackTrace(PrintStream ps)
|
||||
{
|
||||
if (exception == null)
|
||||
{
|
||||
super.printStackTrace(ps);
|
||||
}
|
||||
else
|
||||
{
|
||||
ps.print(this.getClass() + ": ");
|
||||
exception.printStackTrace(ps);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Print a stack trace of the exception that occurred to
|
||||
* the specified <code>PrintWriter</code>.
|
||||
*/
|
||||
public void printStackTrace(PrintWriter pw)
|
||||
{
|
||||
if (exception == null)
|
||||
{
|
||||
super.printStackTrace(pw);
|
||||
}
|
||||
else
|
||||
{
|
||||
pw.print(this.getClass() + ": ");
|
||||
exception.printStackTrace(pw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,69 @@
|
|||
// IllegalAccessError.java
|
||||
/* IllegalAccessError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>IllegalAccessError</code> is thrown when an attempt is made to
|
||||
* call a method, or access or modify a field that the application does not
|
||||
* have access to. Because this error is usually caught by a compiler,
|
||||
* the error only occurs at runtime when the definition of a class has
|
||||
* changed in a way that is incompatible with the previously compiled
|
||||
* application.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class IllegalAccessError extends IncompatibleClassChangeError
|
||||
{
|
||||
public IllegalAccessError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -8988904074992417891L;
|
||||
|
||||
public IllegalAccessError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public IllegalAccessError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public IllegalAccessError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,72 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IllegalAccessException.java -- exception thrown when trying to load a
|
||||
class that is not public and in another package.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown in two cases. The first is when try to load a class that is
|
||||
* not public and in another package using specific methods from
|
||||
* <code>ClassLoader</code> and <code>Class</code>. The second case is
|
||||
* when trying to create a new instance of a class to which you do not have
|
||||
* access to the zero argument constructor as in using the
|
||||
* <code>newsInstance</code> method of class <code>Class</code>.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IllegalAccessException extends Exception
|
||||
{
|
||||
public IllegalAccessException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 6616958222490762034L;
|
||||
|
||||
public IllegalAccessException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IllegalAccessException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IllegalAccessException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,67 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IllegalArgumentException.java -- exception may be thrown when a method
|
||||
is passed an illegal or inappropriate argument.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* When a method is passed an illegal or inappropriate argument
|
||||
* this exception may be thrown.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IllegalArgumentException extends RuntimeException
|
||||
{
|
||||
static final long serialVersionUID = -5365630128856068164L;
|
||||
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IllegalArgumentException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public IllegalArgumentException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IllegalArgumentException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,70 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IllegalMonitorStateException.java -- exception thrown when a thread
|
||||
attempts to wait on an object's monitor.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* If a thread attempts to wait on an object's monitor then
|
||||
* <code>IllegalMonitorStateException</code> can be thrown. This
|
||||
* exception is also thrown to give a message to other threads also waiting
|
||||
* on an object's monitor without owning the monitor.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IllegalMonitorStateException extends RuntimeException
|
||||
{
|
||||
public IllegalMonitorStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 3713306369498869069L;
|
||||
|
||||
public IllegalMonitorStateException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IllegalMonitorStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IllegalMonitorStateException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,68 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IllegalStateException.java -- exception thrown when invoking a method at
|
||||
an illegal or inappropriate time.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Invoking a method at an illegal or inappropriate time can result
|
||||
* in an <code>IllegalStateException</code>.
|
||||
*
|
||||
* @since JDK 1.1
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IllegalStateException extends RuntimeException
|
||||
{
|
||||
public IllegalStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -1848914673093119416L;
|
||||
|
||||
public IllegalStateException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IllegalStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IllegalStateException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,69 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IllegalThreadStateException.java -- exception thrown when trying to
|
||||
suspend or resume an object of class Thread when it is not in an
|
||||
appropriate state for the operation.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* When trying to <code>suspend</code> or <code>resume</code> an object
|
||||
* of class <code>Thread</code> when it is not in an appropriate state
|
||||
* for the operation.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IllegalThreadStateException extends IllegalArgumentException
|
||||
{
|
||||
public IllegalThreadStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -7626246362397460174L;
|
||||
|
||||
public IllegalThreadStateException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IllegalThreadStateException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IllegalThreadStateException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// IncompatibleClassChangeError.java
|
||||
/* IncompatibleClassChangeError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>IncompatibleClassChangeError</code> is thrown when the
|
||||
* definition of a class used by the currently executing method has
|
||||
* changed in an incompatible way.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class IncompatibleClassChangeError extends LinkageError
|
||||
{
|
||||
public IncompatibleClassChangeError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -4914975503642802119L;
|
||||
|
||||
public IncompatibleClassChangeError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public IncompatibleClassChangeError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public IncompatibleClassChangeError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,72 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* IndexOutOfBoundsException.java -- exception thrown when attempting to
|
||||
access an index which is out of bounds on objects like String, Array,
|
||||
or Vector.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* This exception can be thrown to indicate an attempt to access an
|
||||
* index which is out of bounds on objects like String, Array, or Vector.
|
||||
* Usually any negative integer less than or equal to -1 and positive
|
||||
* integer greater than or equal to the size of the object is an index
|
||||
* which would be out of bounds.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class IndexOutOfBoundsException extends RuntimeException
|
||||
{
|
||||
public IndexOutOfBoundsException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 234122996006267687L;
|
||||
|
||||
public IndexOutOfBoundsException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public IndexOutOfBoundsException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public IndexOutOfBoundsException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,69 @@
|
|||
// InstantiationError.java
|
||||
/* InstantiationError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>InstantiationError</code> is thrown when an attempt is made to
|
||||
* create an instance of an abstract class or an interface. Because this
|
||||
* error is usually caught by a compiler,
|
||||
* the error only occurs at runtime when the definition of a class has
|
||||
* changed in a way that is incompatible with the previously compiled
|
||||
* application.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class InstantiationError extends IncompatibleClassChangeError
|
||||
{
|
||||
public InstantiationError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -4885810657349421204L;
|
||||
|
||||
public InstantiationError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public InstantiationError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public InstantiationError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,69 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* InstantiationException.java -- exception thrown when trying to instantiate
|
||||
interfaces and abstract classes using the newInstance method of class Class.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Interfaces and abstract classes cannot be instantiated using the
|
||||
* <code>newInstance</code> method of class <code>Class</code>. Trying
|
||||
* to do so results in this exception being thrown.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class InstantiationException extends Exception
|
||||
{
|
||||
public InstantiationException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -8441929162975509110L;
|
||||
|
||||
public InstantiationException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public InstantiationException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public InstantiationException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,65 @@
|
|||
// InternalError.java
|
||||
/* InternalError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>InternalError</code> is thrown when a mystical error has
|
||||
* occurred in the Java Virtual Machine.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class InternalError extends VirtualMachineError
|
||||
{
|
||||
public InternalError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -9062593416125562365L;
|
||||
|
||||
public InternalError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public InternalError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public InternalError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,70 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* InterruptedException.java -- exception thrown when a thread interrupts
|
||||
another thread which was previously sleeping, waiting, or paused in some
|
||||
other way.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown when a thread interrupts another thread which was previously
|
||||
* sleeping, waiting, or paused in some other way. See the
|
||||
* <code>interrupt</code> method of class <code>Thread</code>.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class InterruptedException extends Exception
|
||||
{
|
||||
public InterruptedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 6700697376100628473L;
|
||||
|
||||
public InterruptedException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public InterruptedException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public InterruptedException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// LinkageError.java
|
||||
/* LinkageError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Subclasses of <code>LinkageError</code> are thrown to indicate
|
||||
* a class which is depended upon by another class has incompatibly
|
||||
* changed after the compilation of the latter class.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class LinkageError extends Error
|
||||
{
|
||||
public LinkageError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 3579600108157160122L;
|
||||
|
||||
public LinkageError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public LinkageError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public LinkageError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,68 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* NegativeArraySizeException.java -- exception thrown when an attempt is
|
||||
made to create an array with a negative size.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown when an attempt is made to create an array with a negative
|
||||
* size.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class NegativeArraySizeException extends RuntimeException
|
||||
{
|
||||
public NegativeArraySizeException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -8960118058596991861L;
|
||||
|
||||
public NegativeArraySizeException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public NegativeArraySizeException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public NegativeArraySizeException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,69 @@
|
|||
// NoClassDefFoundError.java
|
||||
/* NoClassDefFoundError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>NoClassDefFoundError</code> is thrown when a classloader or the
|
||||
* Java Virtual Machine tries to load a class and no definition of the class
|
||||
* can be found. This could happen when using the <code>new</code> expression
|
||||
* or during a normal method call. The reason this would occur at runtime is
|
||||
* because the missing class definition existed when the currently executing
|
||||
* class was compiled, but now that definition cannot be found.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class NoClassDefFoundError extends LinkageError
|
||||
{
|
||||
public NoClassDefFoundError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 9095859863287012458L;
|
||||
|
||||
public NoClassDefFoundError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public NoClassDefFoundError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public NoClassDefFoundError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// NoSuchFieldError.java
|
||||
/* NoSuchFieldError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>NoSuchFieldError</code> is thrown if an application attempts
|
||||
* to access the field of an object and that object no longer has that
|
||||
* field.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class NoSuchFieldError extends IncompatibleClassChangeError
|
||||
{
|
||||
public NoSuchFieldError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -3456430195886129035L;
|
||||
|
||||
public NoSuchFieldError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public NoSuchFieldError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public NoSuchFieldError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,67 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* NoSuchFieldException.java -- exception thrown to indicate the class does
|
||||
not have the specified field.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown to indicate the class does not have the specified field.
|
||||
*
|
||||
* @since JDK 1.1
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class NoSuchFieldException extends Exception
|
||||
{
|
||||
public NoSuchFieldException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -6143714805279938260L;
|
||||
|
||||
public NoSuchFieldException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public NoSuchFieldException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public NoSuchFieldException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// NoSuchMethodError.java
|
||||
/* NoSuchMethodError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>NoSuchMethodError</code> is thrown if an application attempts
|
||||
* to access a method of a class, and that class no longer has that
|
||||
* method.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class NoSuchMethodError extends IncompatibleClassChangeError
|
||||
{
|
||||
public NoSuchMethodError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -3765521442372831335L;
|
||||
|
||||
public NoSuchMethodError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public NoSuchMethodError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public NoSuchMethodError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,67 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* NoSuchMethodException.java -- exception thrown to indicate the class
|
||||
does not have the specified method.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown to indicate the class does not have the specified method.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class NoSuchMethodException extends Exception
|
||||
{
|
||||
public NoSuchMethodException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 5034388446362600923L;
|
||||
|
||||
public NoSuchMethodException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public NoSuchMethodException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public NoSuchMethodException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,68 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* NullPointerException.java -- exception thrown when attempting to use null
|
||||
where an object is required.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Thrown when attempting to use <code>null</code> where an object
|
||||
* is required, such as when accessing an instance method of a null object.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class NullPointerException extends RuntimeException
|
||||
{
|
||||
public NullPointerException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 5162710183389028792L;
|
||||
|
||||
public NullPointerException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public NullPointerException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public NullPointerException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,69 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* NumberFormatException.java -- exception may be thrown when attempting to
|
||||
convert a String to one of the numeric types, but the operation fails.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* Can be thrown when attempting to convert a <code>String</code> to
|
||||
* one of the numeric types, but the operation fails because the string
|
||||
* has the wrong format.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class NumberFormatException extends IllegalArgumentException
|
||||
{
|
||||
public NumberFormatException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -2848938806368998894L;
|
||||
|
||||
public NumberFormatException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public NumberFormatException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public NumberFormatException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// OutOfMemoryError.java
|
||||
/* OutOfMemoryError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* When the Java Virtual Machine is unable to allocate an object because it
|
||||
* is out of memory and no more memory could be made available by the
|
||||
* garbage collector an <code>OutOfMemoryError</code> is thrown.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class OutOfMemoryError extends VirtualMachineError
|
||||
{
|
||||
public OutOfMemoryError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 8228564086184010517L;
|
||||
|
||||
public OutOfMemoryError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public OutOfMemoryError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public OutOfMemoryError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,32 +1,70 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* RuntimeException.java -- all exceptions which are subclasses of this class
|
||||
can be thrown at any time during the execution of a Java virtual machine.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* All exceptions which are subclasses of <code>RuntimeException</code>
|
||||
* can be thrown at any time during the execution of a Java virtual machine.
|
||||
* Methods which throw these exceptions are not required to declare them
|
||||
* in their throws clause.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class RuntimeException extends Exception
|
||||
{
|
||||
public RuntimeException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = -7034897190745766939L;
|
||||
|
||||
public RuntimeException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public RuntimeException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public RuntimeException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,31 +1,68 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* SecurityException.java -- exception thrown to indicate a security
|
||||
violation.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998. */
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* The security manager will throw this exception to indicate a security
|
||||
* violation.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class SecurityException extends RuntimeException
|
||||
{
|
||||
public SecurityException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
static final long serialVersionUID = 6878364983674394167L;
|
||||
|
||||
public SecurityException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public SecurityException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public SecurityException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,34 +1,65 @@
|
|||
// StackOverflowError.java
|
||||
/* StackOverflowError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>StackOverflowError</code> is thrown when a stack overflow occurs.
|
||||
* This can occur because an application recurses too deeply.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class StackOverflowError extends VirtualMachineError
|
||||
{
|
||||
public StackOverflowError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 8609175038441759607L;
|
||||
|
||||
public StackOverflowError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public StackOverflowError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public StackOverflowError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,37 +1,79 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* StringIndexOutOfBoundsException.java -- exception thrown to indicate
|
||||
an attempt to access an index which is out of bounds.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Exceptions may be thrown by one part of a Java program and caught
|
||||
* by another in order to deal with exceptional conditions.
|
||||
* This exception can be thrown to indicate an attempt to access an
|
||||
* index which is out of bounds.
|
||||
* Any negative integer less than or equal to -1 and positive
|
||||
* integer greater than or equal to the size of the string is an index
|
||||
* which would be out of bounds.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
|
||||
{
|
||||
static final long serialVersionUID = -6762910422159637258L;
|
||||
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public StringIndexOutOfBoundsException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public StringIndexOutOfBoundsException(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception noting the illegal index.
|
||||
*/
|
||||
public StringIndexOutOfBoundsException(int index)
|
||||
{
|
||||
this("String index out of range: " + index);
|
||||
}
|
||||
|
||||
public StringIndexOutOfBoundsException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
{
|
||||
super("String index out of range: " + index);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ public final class System
|
|||
public static String getProperty (String property, String defval)
|
||||
{
|
||||
if (secman != null)
|
||||
secman.checkPropertyAccess(property, defval);
|
||||
secman.checkPropertyAccess(property);
|
||||
if (properties == null)
|
||||
init_properties ();
|
||||
return properties.getProperty(property, defval);
|
||||
|
|
|
@ -1,30 +1,49 @@
|
|||
// ThreadDeath.java - Special exception registering Thread death.
|
||||
/* java.lang.ThreadDeath - Special exception registering Thread death.
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date August 26, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Complete to version 1.1
|
||||
*/
|
||||
|
||||
public class ThreadDeath extends Error
|
||||
{
|
||||
public ThreadDeath ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
/**
|
||||
** ThreadDeath is thrown in a thread when someone calls <CODE>stop()</CODE> on that thread.
|
||||
**
|
||||
** <B>Important:</B> Make sure you rethrow this exception if you catch it. If you don't, the thread will not die.
|
||||
**
|
||||
** @author John Keiser
|
||||
** @author Tom Tromey <tromey@cygnus.com>
|
||||
** @version 1.1.0, 5 Feb 1998, August 26 1998
|
||||
** @since JDK1.0
|
||||
** @see java.lang.Thread#stop()
|
||||
**/
|
||||
|
||||
public class ThreadDeath extends Error {
|
||||
}
|
||||
|
|
|
@ -1,34 +1,63 @@
|
|||
// UnknownError.java
|
||||
/* UnknownError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* An <code>UnknownError</code> is thrown when a serious but unknown
|
||||
* problem has occurred in the Java Virtual Machine.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
*/
|
||||
public class UnknownError extends VirtualMachineError
|
||||
{
|
||||
public UnknownError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 2524784860676771849L;
|
||||
|
||||
public UnknownError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public UnknownError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public UnknownError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
// UnsatisfiedLinkError.java
|
||||
/* UnsatisfiedLinkError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>UnsatisfiedLinkError</code> is thrown if an appropriate
|
||||
* native language definition of a method declared <code>native</code>
|
||||
* cannot be found by the Java Virtual Machine.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class UnsatisfiedLinkError extends LinkageError
|
||||
{
|
||||
public UnsatisfiedLinkError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = -4019343241616879428L;
|
||||
|
||||
public UnsatisfiedLinkError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public UnsatisfiedLinkError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public UnsatisfiedLinkError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
58
libjava/java/lang/UnsupportedClassVersionError.java
Normal file
58
libjava/java/lang/UnsupportedClassVersionError.java
Normal file
|
@ -0,0 +1,58 @@
|
|||
/* UnsupportedClassVersionError.java
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* An <code>UnsupportedClassVersionError</code> is thrown when the
|
||||
* Java Virtual Machine determines it does not support the major and minor
|
||||
* version numbers in the class file it is attempting to read.
|
||||
*
|
||||
* @since JDK 1.2
|
||||
*
|
||||
* @author Brian Jones
|
||||
*/
|
||||
public class UnsupportedClassVersionError extends ClassFormatError
|
||||
{
|
||||
static final long serialVersionUID = -7123279212883497373L;
|
||||
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public UnsupportedClassVersionError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public UnsupportedClassVersionError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
|
@ -1,32 +1,65 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* UnsupportedOperationException.java -- Exception thrown when an
|
||||
unsupported operation is attempted on an object
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This exception is thrown by an object when an operation is
|
||||
* requested of it that it does not support.
|
||||
*
|
||||
* @since JDK 1.2
|
||||
*
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date September 18, 1998.
|
||||
*/
|
||||
public class UnsupportedOperationException extends RuntimeException
|
||||
{
|
||||
public UnsupportedOperationException()
|
||||
static final long serialVersionUID = -1242599979055084673L;
|
||||
|
||||
/**
|
||||
* Create an exception without a message.
|
||||
*/
|
||||
public UnsupportedOperationException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public UnsupportedOperationException(String msg)
|
||||
/**
|
||||
* Create an exception with a message.
|
||||
*/
|
||||
public UnsupportedOperationException( String s )
|
||||
{
|
||||
super(msg);
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
71
libjava/java/lang/VMSecurityManager.java
Normal file
71
libjava/java/lang/VMSecurityManager.java
Normal file
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* java.lang.SecurityManager: part of the Java Class Libraries project.
|
||||
* Copyright (C) 1998, 2001 Free Software Foundation
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
package java.lang;
|
||||
|
||||
import java.net.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
** VMSecurityManager is a helper class for SecurityManager the VM must
|
||||
** implement.
|
||||
**
|
||||
** @author John Keiser
|
||||
** @version 1.1.0, 31 May 1998
|
||||
**/
|
||||
class VMSecurityManager
|
||||
{
|
||||
/** Get a list of all the classes currently executing
|
||||
** methods on the Java stack. getClassContext()[0] is
|
||||
** the currently executing method
|
||||
** <STRONG>Spec Note:</STRONG> does not say whether
|
||||
** the stack will include the getClassContext() call or
|
||||
** the one just before it.
|
||||
**
|
||||
** @return an array containing all the methods on classes
|
||||
** on the Java execution stack.
|
||||
**/
|
||||
static Class[] getClassContext()
|
||||
{
|
||||
// FIXME: can't yet implement this for libgcj.
|
||||
return new Class[0];
|
||||
}
|
||||
|
||||
/** Get the current ClassLoader--the one nearest to the
|
||||
** top of the stack.
|
||||
** @return the current ClassLoader.
|
||||
**/
|
||||
static ClassLoader currentClassLoader()
|
||||
{
|
||||
// The docs above are wrong. See the online docs.
|
||||
// FIXME this implementation is a bit wrong too -- the docs say we
|
||||
// must also consider ancestors of the system class loader.
|
||||
Class[] classStack = getClassContext ();
|
||||
for (int i = 0; i < classStack.length; i++)
|
||||
{
|
||||
ClassLoader loader = classStack[i].getClassLoader();
|
||||
if (loader != null)
|
||||
return loader;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,34 +1,65 @@
|
|||
// VerifyError.java
|
||||
/* VerifyError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A <code>VerifyError</code> is thrown if there is a security problem or
|
||||
* internal inconsistency in a class file as deteced by the "verifier."
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public class VerifyError extends LinkageError
|
||||
{
|
||||
public VerifyError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 7001962396098498785L;
|
||||
|
||||
public VerifyError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public VerifyError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public VerifyError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,39 +1,66 @@
|
|||
// VirtualMachineError.java
|
||||
/* VirtualMachineError.java
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/* FIXME: We should consider adding some special error message when this
|
||||
* exception is thrown, or maybe if it being caught at top-level. Such
|
||||
* a message would direct the user to send a bug report to
|
||||
* gcj-bugs@cygnus.com, or something like that. --KKT */
|
||||
|
||||
/**
|
||||
* A <code>VirtualMachineError</code> or its subclasses are thrown to
|
||||
* indicate there is something wrong with the Java Virtual Machine or that
|
||||
* it does not have the resources needed for it to continue execution.
|
||||
*
|
||||
* @since JDK 1.0
|
||||
*
|
||||
* @author Brian Jones
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date October 1, 1998
|
||||
*/
|
||||
public abstract class VirtualMachineError extends Error
|
||||
{
|
||||
public VirtualMachineError ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
static final long serialVersionUID = 4161983926571568670L;
|
||||
|
||||
public VirtualMachineError (String msg)
|
||||
{
|
||||
super (msg);
|
||||
}
|
||||
/**
|
||||
* Create an error without a message.
|
||||
*/
|
||||
public VirtualMachineError()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an error with a message.
|
||||
*/
|
||||
public VirtualMachineError(String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,75 +1,128 @@
|
|||
// InvocationTargetException.java - Wrapper exception for reflection.
|
||||
/* InvocationTargetException.java - Wrapper exception for reflection
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
|
||||
package java.lang.reflect;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date December 12, 1998
|
||||
*/
|
||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
public class InvocationTargetException extends Exception
|
||||
/**
|
||||
* InvocationTargetException is sort of a way to "wrap" whatever exception
|
||||
* comes up when a method or constructor is called via Reflection.
|
||||
*
|
||||
* @author John Keiser
|
||||
* @version 1.1.0, 31 May 1998
|
||||
* @author Tom Tromey <tromey@cygnus.com>
|
||||
* @date December 12, 1998
|
||||
*
|
||||
* @see Method#invoke(Object,Object[])
|
||||
* @see Constructor#newInstance(Object[])
|
||||
*/
|
||||
|
||||
public class InvocationTargetException extends Exception
|
||||
{
|
||||
public Throwable getTargetException ()
|
||||
static final long serialVersionUID = 4085088731926701167L;
|
||||
|
||||
private Throwable target = null;
|
||||
|
||||
protected InvocationTargetException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an <code>InvocationTargetException</code> using another
|
||||
* exception.
|
||||
* @param targetException the exception to wrap
|
||||
*/
|
||||
public InvocationTargetException(Throwable targetException)
|
||||
{
|
||||
super(targetException.toString());
|
||||
target = targetException;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an <code>InvocationTargetException</code> using another
|
||||
* exception and an error message.
|
||||
*
|
||||
* @param targetException the exception to wrap
|
||||
* @param err an extra reason for the exception-throwing
|
||||
*/
|
||||
public InvocationTargetException(Throwable targetException, String err)
|
||||
{
|
||||
super(err);
|
||||
target = targetException;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the wrapped (targeted) exception.
|
||||
*
|
||||
* @return the targeted exception.
|
||||
*/
|
||||
public Throwable getTargetException()
|
||||
{
|
||||
return target;
|
||||
}
|
||||
|
||||
protected InvocationTargetException ()
|
||||
public void printStackTrace()
|
||||
{
|
||||
super ();
|
||||
target = null;
|
||||
}
|
||||
|
||||
public InvocationTargetException (Throwable exception)
|
||||
{
|
||||
super ();
|
||||
target = exception;
|
||||
}
|
||||
|
||||
public InvocationTargetException (Throwable exception, String msg)
|
||||
{
|
||||
super (msg);
|
||||
target = exception;
|
||||
}
|
||||
|
||||
// This is from JDK 1.2.
|
||||
public void printStackTrace ()
|
||||
{
|
||||
if (target != null)
|
||||
if (target == null)
|
||||
super.printStackTrace();
|
||||
else
|
||||
{
|
||||
System.err.print(this.getClass() + ": ");
|
||||
target.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
// This is from JDK 1.2.
|
||||
public void printStackTrace (PrintStream s)
|
||||
public void printStackTrace(PrintStream ps)
|
||||
{
|
||||
if (target != null)
|
||||
target.printStackTrace(s);
|
||||
if (target == null)
|
||||
super.printStackTrace(ps);
|
||||
else
|
||||
{
|
||||
ps.print(this.getClass() + ": ");
|
||||
target.printStackTrace(ps);
|
||||
}
|
||||
}
|
||||
|
||||
// This is from JDK 1.2.
|
||||
public void printStackTrace (PrintWriter wr)
|
||||
public void printStackTrace(PrintWriter pw)
|
||||
{
|
||||
if (target != null)
|
||||
target.printStackTrace(wr);
|
||||
if (target == null)
|
||||
super.printStackTrace(pw);
|
||||
else
|
||||
{
|
||||
pw.print(this.getClass() + ": ");
|
||||
target.printStackTrace(pw);
|
||||
}
|
||||
}
|
||||
|
||||
// The wrapped exception. The name is specified by the
|
||||
// serialization spec.
|
||||
private Throwable target;
|
||||
|
||||
private static final long serialVersionUID = 4085088731926701167L;
|
||||
}
|
||||
|
|
|
@ -1,35 +1,75 @@
|
|||
// BindException.java
|
||||
/* BindException.java -- An exception occured while binding to a socket
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that an error occured while attempting to bind
|
||||
* socket to a particular port.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class BindException extends SocketException
|
||||
{
|
||||
public BindException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public BindException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>BindException</code> without
|
||||
* a descriptive error message.
|
||||
*/
|
||||
public
|
||||
BindException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>BindException</code> with
|
||||
* a descriptive error message, such as the text from strerror(3).
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
BindException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class BindException
|
||||
|
||||
|
|
|
@ -1,35 +1,77 @@
|
|||
// ConnectException.java
|
||||
/* ConnectException.java -- An exception occured while connecting to a host
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that an error occured while attempting to
|
||||
* connect to a remote host. Often this indicates that the remote host
|
||||
* refused the connection (ie, is not listening on the target socket).
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class ConnectException extends SocketException
|
||||
{
|
||||
public ConnectException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public ConnectException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>ConnectException</code> without
|
||||
* a descriptive error message.
|
||||
*/
|
||||
public
|
||||
ConnectException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>ConnectException</code> with
|
||||
* a descriptive error message, such as the text from strerror(3).
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
ConnectException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class ConnectException
|
||||
|
||||
|
|
|
@ -1,35 +1,75 @@
|
|||
// MalformedURLException.java
|
||||
/* MalformedURLException.java -- A URL was not in a valid format
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that a URL passed to an object was not in a
|
||||
* valid format.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class MalformedURLException extends java.io.IOException
|
||||
{
|
||||
public MalformedURLException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public MalformedURLException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>MalformedURLException</code> without
|
||||
* a descriptive error message.
|
||||
*/
|
||||
public
|
||||
MalformedURLException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>MalformedURLException</code> without
|
||||
* a descriptive error message.
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
MalformedURLException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class MalformedURLException
|
||||
|
||||
|
|
|
@ -1,35 +1,76 @@
|
|||
// NoRouteToHostException.java
|
||||
/* NoRouteToHostException.java -- Cannot connect to a host
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that there is no TCP/IP route to the requested
|
||||
* host. This is often due to a misconfigured routing table.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class NoRouteToHostException extends SocketException
|
||||
{
|
||||
public NoRouteToHostException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public NoRouteToHostException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes an instance of <code>NoRouteToHostException</code>
|
||||
* without a descriptive error message.
|
||||
*/
|
||||
public
|
||||
NoRouteToHostException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes an instance of <code>NoRouteToHostException</code>
|
||||
* witha descriptive error message, such as the text from strerror(3).
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
NoRouteToHostException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class NoRouteToHostException
|
||||
|
||||
|
|
|
@ -1,35 +1,76 @@
|
|||
// ProtocolException.java
|
||||
/* ProtocolException.java -- A low level protocol error occured
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that some sort of low level protocol
|
||||
* exception occured. Look in the descriptive message (if any) for
|
||||
* details on what went wrong
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class ProtocolException extends java.io.IOException
|
||||
{
|
||||
public ProtocolException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public ProtocolException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>ProtocolException</code>
|
||||
* without a descriptive error message.
|
||||
*/
|
||||
public
|
||||
ProtocolException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>ProtocolException</code>
|
||||
* with a descriptive error message.
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
ProtocolException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class ProtocolException
|
||||
|
||||
|
|
|
@ -1,33 +1,74 @@
|
|||
// SocketException.java - Base class for networking exceptions
|
||||
/* SocketException.java -- An exception occured while performing a socket op
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Per Bothner
|
||||
* @date January 6, 1999.
|
||||
/* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Believed complete and correct.
|
||||
*/
|
||||
|
||||
/** Written using on-line Java Platform 1.2 API Specification.
|
||||
* Believed complete and correct.
|
||||
/**
|
||||
* This exception indicates that a generic error occured related to an
|
||||
* operation on a socket. Check the descriptive message (if any) for
|
||||
* details on the nature of this error
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Per Bothner
|
||||
* @date January 6, 1999.
|
||||
*/
|
||||
|
||||
public class SocketException extends java.io.IOException
|
||||
{
|
||||
public SocketException ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public SocketException (String s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>SocketException</code> without
|
||||
* a descriptive error message.
|
||||
*/
|
||||
public
|
||||
SocketException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>SocketException</code> without
|
||||
* a descriptive error message.
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
SocketException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class SocketException
|
||||
|
||||
|
|
|
@ -1,34 +1,77 @@
|
|||
// UnknownHostException.java
|
||||
/* UnknownHostException.java -- The hostname is not unknown
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Per Bothner
|
||||
* @date January 6, 1999.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that an attempt was made to reference a hostname
|
||||
* or IP address that is not valid. This could possibly indicate that a
|
||||
* DNS problem has occurred, but most often means that the host was not
|
||||
* correctly specified.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Per Bothner
|
||||
* @date January 6, 1999.
|
||||
*/
|
||||
public class UnknownHostException extends java.io.IOException
|
||||
{
|
||||
public UnknownHostException ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public UnknownHostException (String host)
|
||||
{
|
||||
super(host);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>UnknownHostException</code>
|
||||
* without a descriptive error message.
|
||||
*/
|
||||
public
|
||||
UnknownHostException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>UnknownHostException</code>
|
||||
* with a descriptive error message, such as the name of the host
|
||||
* that could not be resolved.
|
||||
*
|
||||
* @param message A message describing the error that occurrred.
|
||||
*/
|
||||
public
|
||||
UnknownHostException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class UnknownHostException
|
||||
|
||||
|
|
|
@ -1,35 +1,77 @@
|
|||
// UnknownServiceException.java
|
||||
/* UnknownServiceException.java -- A service error occured
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
/* Copyright (C) 1999 Free Software Foundation
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
This file is part of libgcj.
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Written using on-line Java Platform 1.2 API Specification, as well
|
||||
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contrary to what you might think, this does not indicate that the
|
||||
* TCP/IP service name specified was invalid. Instead it indicates that
|
||||
* the MIME type returned from a URL could not be determined or that an
|
||||
* attempt was made to write to a read-only URL.
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
*/
|
||||
public class UnknownServiceException extends java.io.IOException
|
||||
{
|
||||
public UnknownServiceException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public UnknownServiceException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
}
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>UnknownServiceException</code>
|
||||
* without a descriptive error message.
|
||||
*/
|
||||
public
|
||||
UnknownServiceException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>UnknownServiceException</code>
|
||||
* without a descriptive error message.
|
||||
*
|
||||
* @param message A message describing the error that occurred.
|
||||
*/
|
||||
public
|
||||
UnknownServiceException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
} // class UnknownServiceException
|
||||
|
||||
|
|
|
@ -1,34 +1,91 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* ParseException.java -- An error occurred while parsing.
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of libgcj.
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
GNU Classpath is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Classpath is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Classpath; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA.
|
||||
|
||||
As a special exception, if you link this library with other files to
|
||||
produce an executable, this library does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public License.
|
||||
This exception does not however invalidate any other reasons why the
|
||||
executable file might be covered by the GNU General Public License. */
|
||||
|
||||
This software is copyrighted work licensed under the terms of the
|
||||
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||
details. */
|
||||
|
||||
package java.text;
|
||||
|
||||
/**
|
||||
* @author Per Bothner <bothner@cygnus.com>
|
||||
* @date October 25, 1998.
|
||||
*/
|
||||
/* Written using "Java Class Libraries", 2nd edition, plus online
|
||||
* API docs for JDK 1.2 beta from http://www.javasoft.com.
|
||||
* Status: Believed complete and correct.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception is thrown when an unexpected error occurs during parsing.
|
||||
*
|
||||
* @version 0.0
|
||||
*
|
||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||
* @author Per Bothner <bothner@cygnus.com>
|
||||
* @date October 25, 1998.
|
||||
*/
|
||||
public class ParseException extends Exception
|
||||
{
|
||||
private int errorOffset;
|
||||
|
||||
public ParseException (String msg, int errorOffset)
|
||||
{
|
||||
super(msg);
|
||||
this.errorOffset = errorOffset;
|
||||
}
|
||||
/*
|
||||
* Instance Variables
|
||||
*/
|
||||
|
||||
public int getErrorOffset ()
|
||||
{
|
||||
return errorOffset;
|
||||
}
|
||||
/**
|
||||
* This is the position where the error was encountered.
|
||||
*/
|
||||
private int errorOffset;
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/*
|
||||
* Constructors
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method initializes a new instance of <code>ParseException</code>
|
||||
* with a detailed error message and a error position.
|
||||
*
|
||||
* @param msg The descriptive message describing the error.
|
||||
* @param offset The position where the error was encountered.
|
||||
*/
|
||||
public
|
||||
ParseException(String s, int offset)
|
||||
{
|
||||
super(s);
|
||||
|
||||
errorOffset = offset;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* This method returns the position where the error occurred.
|
||||
*
|
||||
* @return The position where the error occurred.
|
||||
*/
|
||||
public int
|
||||
getErrorOffset()
|
||||
{
|
||||
return(errorOffset);
|
||||
}
|
||||
|
||||
} // class ParseException
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue