[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [generics] Patch: FYI: new exceptions
From: |
Tom Tromey |
Subject: |
[cp-patches] [generics] Patch: FYI: new exceptions |
Date: |
20 Apr 2005 14:16:22 -0600 |
I'm checking this in on the generics branch.
This adds a bunch of new exception classes.
Tom
2005-04-19 Tom Tromey <address@hidden>
* java/util/DuplicateFormatFlagsException.java: New file.
* java/util/FormatFlagsConversionMismatchException.java: New
file.
* java/util/FormatterClosedException.java: New file.
* java/util/IllegalFormatCodePointException.java: New file.
* java/util/IllegalFormatConversionException.java: New file.
* java/util/UnknownFormatFlagsException.java: New file.
* java/util/UnknownFormatConversionException.java: New file.
* java/util/MissingFormatWidthException.java: New file.
* java/util/MissingFormatArgumentException.java: New file.
* java/util/InputMismatchException.java: New file.
* java/util/IllegalFormatWidthException.java: New file.
* java/util/IllegalFormatPrecisionException.java: New file.
* java/util/IllegalFormatFlagsException.java: New file.
* java/util/IllegalFormatException.java: New file.
Index: java/util/DuplicateFormatFlagsException.java
===================================================================
RCS file: java/util/DuplicateFormatFlagsException.java
diff -N java/util/DuplicateFormatFlagsException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/DuplicateFormatFlagsException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* DuplicateFormatFlagsException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class DuplicateFormatFlagsException extends IllegalFormatException
+{
+ private String flags;
+
+ public DuplicateFormatFlagsException(String flags)
+ {
+ this.flags = flags;
+ }
+
+ public String getFlags()
+ {
+ return flags;
+ }
+}
Index: java/util/FormatterClosedException.java
===================================================================
RCS file: java/util/FormatterClosedException.java
diff -N java/util/FormatterClosedException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/FormatterClosedException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,47 @@
+/* FormatterClosedException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class FormatterClosedException extends IllegalStateException
+{
+ public FormatterClosedException()
+ {
+ }
+}
Index: java/util/IllegalFormatCodePointException.java
===================================================================
RCS file: java/util/IllegalFormatCodePointException.java
diff -N java/util/IllegalFormatCodePointException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatCodePointException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* IllegalFormatCodePointException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatCodePointException extends IllegalFormatException
+{
+ int codepoint;
+
+ public IllegalFormatCodePointException(int c)
+ {
+ this.codepoint = c;
+ }
+
+ public int getCodePoint()
+ {
+ return codepoint;
+ }
+}
Index: java/util/IllegalFormatConversionException.java
===================================================================
RCS file: java/util/IllegalFormatConversionException.java
diff -N java/util/IllegalFormatConversionException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatConversionException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,62 @@
+/* IllegalFormatConversionException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatConversionException extends IllegalFormatException
+{
+ char conv;
+ Class<?> argClass;
+
+ public IllegalFormatConversionException(char conv, Class<?> argClass)
+ {
+ this.conv = conv;
+ this.argClass = argClass;
+ }
+
+ public char getConversion()
+ {
+ return conv;
+ }
+
+ public Class<?> getArgumentClass()
+ {
+ return argClass;
+ }
+}
Index: java/util/IllegalFormatException.java
===================================================================
RCS file: java/util/IllegalFormatException.java
diff -N java/util/IllegalFormatException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,47 @@
+/* IllegalFormatException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatException extends IllegalArgumentException
+{
+ IllegalFormatException()
+ {
+ }
+}
Index: java/util/IllegalFormatFlagsException.java
===================================================================
RCS file: java/util/IllegalFormatFlagsException.java
diff -N java/util/IllegalFormatFlagsException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatFlagsException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,56 @@
+/* IllegalFormatFlagsException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatFlagsException extends IllegalFormatException
+{
+ private String flags;
+
+ public IllegalFormatFlagsException(String flags)
+ {
+ super();
+ this.flags = flags;
+ }
+
+ public String getFlags()
+ {
+ return flags;
+ }
+}
Index: java/util/IllegalFormatPrecisionException.java
===================================================================
RCS file: java/util/IllegalFormatPrecisionException.java
diff -N java/util/IllegalFormatPrecisionException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatPrecisionException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,56 @@
+/* IllegalFormatPrecisionException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatPrecisionException extends IllegalFormatException
+{
+ private int precision;
+
+ public IllegalFormatPrecisionException(int precision)
+ {
+ super();
+ this.precision = precision;
+ }
+
+ public int getPrecision()
+ {
+ return precision;
+ }
+}
Index: java/util/IllegalFormatWidthException.java
===================================================================
RCS file: java/util/IllegalFormatWidthException.java
diff -N java/util/IllegalFormatWidthException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/IllegalFormatWidthException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,56 @@
+/* IllegalFormatWidthException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class IllegalFormatWidthException extends IllegalFormatException
+{
+ private int width;
+
+ public IllegalFormatWidthException(int width)
+ {
+ super();
+ this.width = width;
+ }
+
+ public int getWidth()
+ {
+ return width;
+ }
+}
Index: java/util/InputMismatchException.java
===================================================================
RCS file: java/util/InputMismatchException.java
diff -N java/util/InputMismatchException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/InputMismatchException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,52 @@
+/* InputMismatchException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class InputMismatchException extends NoSuchElementException
+{
+ public InputMismatchException()
+ {
+ }
+
+ public InputMismatchException(String s)
+ {
+ super(s);
+ }
+}
Index: java/util/MissingFormatArgumentException.java
===================================================================
RCS file: java/util/MissingFormatArgumentException.java
diff -N java/util/MissingFormatArgumentException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/MissingFormatArgumentException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* MissingFormatArgumentException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class MissingFormatArgumentException extends IllegalFormatException
+{
+ private String spec;
+
+ public MissingFormatArgumentException(String s)
+ {
+ this.spec = s;
+ }
+
+ public String getFormatSpecifier()
+ {
+ return spec;
+ }
+}
Index: java/util/MissingFormatWidthException.java
===================================================================
RCS file: java/util/MissingFormatWidthException.java
diff -N java/util/MissingFormatWidthException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/MissingFormatWidthException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* MissingFormatWidthException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class MissingFormatWidthException extends IllegalFormatException
+{
+ private String width;
+
+ public MissingFormatWidthException(String s)
+ {
+ this.width = s;
+ }
+
+ public String getFormatSpecifier()
+ {
+ return width;
+ }
+}
Index: java/util/UnknownFormatConversionException.java
===================================================================
RCS file: java/util/UnknownFormatConversionException.java
diff -N java/util/UnknownFormatConversionException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/UnknownFormatConversionException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* UnknownFormatConversionException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class UnknownFormatConversionException extends IllegalFormatException
+{
+ private String conv;
+
+ public UnknownFormatConversionException(String s)
+ {
+ this.conv = s;
+ }
+
+ public String getConversion()
+ {
+ return conv;
+ }
+}
Index: java/util/UnknownFormatFlagsException.java
===================================================================
RCS file: java/util/UnknownFormatFlagsException.java
diff -N java/util/UnknownFormatFlagsException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ java/util/UnknownFormatFlagsException.java 20 Apr 2005 20:15:31 -0000
@@ -0,0 +1,55 @@
+/* UnknownFormatFlagsException.java
+ Copyright (C) 2005 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.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.util;
+
+/** @since 1.5 */
+public class UnknownFormatFlagsException extends IllegalFormatException
+{
+ private String flags;
+
+ public UnknownFormatFlagsException(String s)
+ {
+ this.flags = s;
+ }
+
+ public String getFlags()
+ {
+ return flags;
+ }
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [generics] Patch: FYI: new exceptions,
Tom Tromey <=