AbstractMethodError.java: Re-merged with Classpath.
* java/lang/AbstractMethodError.java: Re-merged with Classpath. * java/lang/ArithmeticException.java: Likewise. * java/lang/ArrayIndexOutOfBoundsException.java: Likewise. * java/lang/ArrayStoreException.java: Likewise. * java/lang/Byte.java: Likewise. * java/lang/CharSequence.java: Likewise. * java/lang/ClassCastException.java: Likewise. * java/lang/ClassCircularityError.java: Likewise. * java/lang/ClassFormatError.java: Likewise. * java/lang/CloneNotSupportedException.java: Likewise. * java/lang/Cloneable.java: Likewise. * java/lang/Comparable.java: Likewise. * java/lang/Compiler.java: Likewise. * java/lang/Error.java: Likewise. * java/lang/ExceptionInInitializerError.java: Likewise. * java/lang/IllegalAccessError.java: Likewise. * java/lang/IllegalAccessException.java: Likewise. * java/lang/IllegalArgumentException.java: Likewise. * java/lang/IllegalMonitorStateException.java: Likewise. * java/lang/IllegalStateException.java: Likewise. * java/lang/IllegalThreadStateException.java: Likewise. * java/lang/IncompatibleClassChangeError.java: Likewise. * java/lang/IndexOutOfBoundsException.java: Likewise. * java/lang/InheritableThreadLocal.java: Likewise. * java/lang/InstantiationError.java: Likewise. * java/lang/InstantiationException.java: Likewise. * java/lang/InternalError.java: Likewise. * java/lang/InterruptedException.java: Likewise. * java/lang/LinkageError.java: Likewise. * java/lang/NegativeArraySizeException.java: Likewise. * java/lang/NoClassDefFoundError.java: Likewise. * java/lang/NoSuchFieldError.java: Likewise. * java/lang/NoSuchFieldException.java: Likewise. * java/lang/NoSuchMethodError.java: Likewise. * java/lang/NoSuchMethodException.java: Likewise. * java/lang/NullPointerException.java: Likewise. * java/lang/NumberFormatException.java: Likewise. * java/lang/OutOfMemoryError.java: Likewise. * java/lang/Process.java: Likewise. * java/lang/Runnable.java: Likewise. * java/lang/RuntimePermission.java: Likewise. * java/lang/SecurityException.java: Likewise. * java/lang/Short.java: Likewise. * java/lang/StackOverflowError.java: Likewise. * java/lang/StringIndexOutOfBoundsException.java: Likewise. * java/lang/ThreadDeath.java: Likewise. * java/lang/ThreadLocal.java: Likewise. * java/lang/UnknownError.java: Likewise. * java/lang/UnsatisfiedLinkError.java: Likewise. * java/lang/UnsupportedClassVersionError.java: Likewise. * java/lang/UnsupportedOperationException.java: Likewise. * java/lang/VerifyError.java: Likewise. * java/lang/VirtualMachineError.java: Likewise. * java/lang/reflect/InvocationTargetException.java: Likewise. * java/net/BindException.java: Likewise. * java/net/ConnectException.java: Likewise. * java/net/MalformedURLException.java: Likewise. * java/net/NoRouteToHostException.java: Likewise. * java/net/ProtocolException.java: Likewise. * java/net/SocketException.java: Likewise. * java/net/UnknownHostException.java: Likewise. * java/net/UnknownServiceException.java: Likewise. From-SVN: r54656
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* BindException.java -- An exception occurred while binding to a socket
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -38,49 +38,35 @@ exception statement from your version. */
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* 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 occurred while attempting to bind
|
||||
* socket to a particular port.
|
||||
*
|
||||
* @author Aaron M. Renn <arenn@urbanophile.com>
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that an error occurred 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
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.1+.
|
||||
*/
|
||||
private static final long serialVersionUID = -5945005768251722951L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public BindException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance 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,5 +1,5 @@
|
||||
/* ConnectException.java -- An exception occurred while connecting to a host
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -39,50 +39,37 @@ exception statement from your version. */
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* 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 occurred 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>
|
||||
* @since 1.1
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that an error occurred 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
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.1+.
|
||||
*/
|
||||
private static final long serialVersionUID = 3831404271622369215L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public ConnectException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance 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,5 +1,5 @@
|
||||
/* MalformedURLException.java -- A URL was not in a valid format
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -37,50 +37,37 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 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>
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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 class MalformedURLException extends IOException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.0+.
|
||||
*/
|
||||
private static final long serialVersionUID = -182787522200415866L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public MalformedURLException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance with a descriptive error message.
|
||||
*
|
||||
* @param message a message describing the error that occurred
|
||||
*/
|
||||
public MalformedURLException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
} // class MalformedURLException
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* NoRouteToHostException.java -- Cannot connect to a host
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -38,50 +38,37 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/**
|
||||
* 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 Aaron M. Renn <arenn@urbanophile.com>
|
||||
* @author Warren Levy <warrenl@cygnus.com>
|
||||
* @date March 5, 1999.
|
||||
* @since 1.1
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
public class NoRouteToHostException extends SocketException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.1+.
|
||||
*/
|
||||
private static final long serialVersionUID = -1897550894873493790L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create an instance without a descriptive error message.
|
||||
*/
|
||||
public NoRouteToHostException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance with a 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,5 +1,5 @@
|
||||
/* ProtocolException.java -- A low level protocol error occurred
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
/* ProtocolException.java -- a low level protocol error occurred
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -37,51 +37,38 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 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 occurred. 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>
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that some sort of low level protocol
|
||||
* exception occurred. 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 class ProtocolException extends IOException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.0+.
|
||||
*/
|
||||
private static final long serialVersionUID = -6098449442062388080L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public ProtocolException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance with a descriptive error message.
|
||||
*
|
||||
* @param message a message describing the error that occurred
|
||||
*/
|
||||
public ProtocolException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
} // class ProtocolException
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* SocketException.java -- An exception occurred while performing a socket op
|
||||
Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -37,49 +37,38 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Believed complete and correct.
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* This exception indicates that a generic error occurred 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
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* This exception indicates that a generic error occurred 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 class SocketException extends IOException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.0+.
|
||||
*/
|
||||
private static final long serialVersionUID = -5935874303556886934L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public SocketException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance with a descriptive error message.
|
||||
*
|
||||
* @param message a message describing the error that occurred
|
||||
*/
|
||||
public SocketException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
} // class SocketException
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* UnknownHostException.java -- The hostname is not unknown
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
/* UnknownHostException.java -- The hostname is unknown
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -37,52 +37,40 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
/*
|
||||
* Written using on-line Java Platform 1.2 API Specification.
|
||||
* Status: Believed complete and correct.
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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 class UnknownHostException extends IOException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.0+.
|
||||
*/
|
||||
private static final long serialVersionUID = -4639126076052875403L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public UnknownHostException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance 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 occurred
|
||||
*/
|
||||
public UnknownHostException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
} // class UnknownHostException
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* UnknownServiceException.java -- A service error occurred
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -7,7 +7,7 @@ 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
|
||||
@@ -37,52 +37,39 @@ exception statement from your version. */
|
||||
|
||||
package java.net;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 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>
|
||||
* @status updated to 1.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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 class UnknownServiceException extends IOException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.0+.
|
||||
*/
|
||||
private static final long serialVersionUID = -4169033248853639508L;
|
||||
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
/**
|
||||
* Create a new instance without a descriptive error message.
|
||||
*/
|
||||
public UnknownServiceException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new instance with a descriptive error message.
|
||||
*
|
||||
* @param message a message describing the error that occurred
|
||||
*/
|
||||
public UnknownServiceException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
} // class UnknownServiceException
|
||||
|
||||
|
||||
Reference in New Issue
Block a user