[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ChangeLog javax/management/AttributeN...
From: |
Andrew John Hughes |
Subject: |
[commit-cp] classpath ChangeLog javax/management/AttributeN... |
Date: |
Tue, 13 Jun 2006 20:54:01 +0000 |
CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Andrew John Hughes <gnu_andrew> 06/06/13 20:54:01
Modified files:
. : ChangeLog
Added files:
javax/management: AttributeNotFoundException.java
InvalidAttributeValueException.java
JMException.java MBeanException.java
OperationsException.java
ReflectionException.java
Log message:
2006-06-13 Andrew John Hughes <address@hidden>
* javax/management/AttributeNotFoundException.java,
* javax/management/InvalidAttributeValueException.java,
* javax/management/JMException.java,
* javax/management/MBeanException.java,
* javax/management/OperationsException.java,
* javax/management/ReflectionException.java:
New files.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7802&r2=1.7803
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/AttributeNotFoundException.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/InvalidAttributeValueException.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/JMException.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/MBeanException.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/OperationsException.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/management/ReflectionException.java?cvsroot=classpath&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7802
retrieving revision 1.7803
diff -u -b -r1.7802 -r1.7803
--- ChangeLog 13 Jun 2006 19:41:22 -0000 1.7802
+++ ChangeLog 13 Jun 2006 20:54:00 -0000 1.7803
@@ -1,3 +1,13 @@
+2006-06-13 Andrew John Hughes <address@hidden>
+
+ * javax/management/AttributeNotFoundException.java,
+ * javax/management/InvalidAttributeValueException.java,
+ * javax/management/JMException.java,
+ * javax/management/MBeanException.java,
+ * javax/management/OperationsException.java,
+ * javax/management/ReflectionException.java:
+ New files.
+
2006-06-13 Roman Kennke <address@hidden>
* java/awt/Component.java
Index: javax/management/AttributeNotFoundException.java
===================================================================
RCS file: javax/management/AttributeNotFoundException.java
diff -N javax/management/AttributeNotFoundException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/AttributeNotFoundException.java 13 Jun 2006 20:54:01
-0000 1.1
@@ -0,0 +1,71 @@
+/* AttributeNotFoundException.java -- Thrown by unknown attributes.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * Thrown when a attribute is requested but can not be
+ * found.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class AttributeNotFoundException
+ extends OperationsException
+{
+
+ /**
+ * Constructs a new <code>AttributeNotFoundException</code>.
+ */
+ public AttributeNotFoundException()
+ {
+ super();
+ }
+
+ /**
+ * Constructs a new <code>AttributeNotFoundException</code>
+ * with the specified message.
+ *
+ * @param message the error message to give to the user.
+ */
+ public AttributeNotFoundException(String message)
+ {
+ super(message);
+ }
+
+}
+
Index: javax/management/InvalidAttributeValueException.java
===================================================================
RCS file: javax/management/InvalidAttributeValueException.java
diff -N javax/management/InvalidAttributeValueException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/InvalidAttributeValueException.java 13 Jun 2006
20:54:01 -0000 1.1
@@ -0,0 +1,71 @@
+/* InvalidAttributeValueException.java -- Thrown by invalid values.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * Thrown when a value is given for an attribute which
+ * is invalid.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class InvalidAttributeValueException
+ extends OperationsException
+{
+
+ /**
+ * Constructs a new <code>InvalidAttributeValueException</code>.
+ */
+ public InvalidAttributeValueException()
+ {
+ super();
+ }
+
+ /**
+ * Constructs a new <code>InvalidAttributeValueException</code>
+ * with the specified message.
+ *
+ * @param message the error message to give to the user.
+ */
+ public InvalidAttributeValueException(String message)
+ {
+ super(message);
+ }
+
+}
+
Index: javax/management/JMException.java
===================================================================
RCS file: javax/management/JMException.java
diff -N javax/management/JMException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/JMException.java 13 Jun 2006 20:54:01 -0000 1.1
@@ -0,0 +1,71 @@
+/* JMException.java -- Thrown by the management classes.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * A general superclass for all non-runtime management
+ * exceptions.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class JMException
+ extends Exception
+{
+
+ /**
+ * Constructs a new <code>JMException</code>.
+ */
+ public JMException()
+ {
+ super();
+ }
+
+ /**
+ * Constructs a new <code>JMException</code>
+ * with the specified message.
+ *
+ * @param message the error message to give to the user.
+ */
+ public JMException(String message)
+ {
+ super(message);
+ }
+
+}
+
Index: javax/management/MBeanException.java
===================================================================
RCS file: javax/management/MBeanException.java
diff -N javax/management/MBeanException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/MBeanException.java 13 Jun 2006 20:54:01 -0000
1.1
@@ -0,0 +1,113 @@
+/* MBeanException.java -- A user-defined management exception.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * Represents an arbitrary exception thrown by a management
+ * bean. When a management bean executes code that causes
+ * an exception to be thrown, the resulting exception is
+ * wrapped inside an address@hidden MBeanException}. Calling
+ * address@hidden getTargetException()} will return the wrapped
+ * exception.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class MBeanException
+ extends Exception
+{
+
+ /* Sun re-implemented causality -- don't know why, but
+ serialization demands we do too... */
+
+ /**
+ * The target exception.
+ *
+ * @serial the target exception.
+ */
+ private Exception exception;
+
+ /**
+ * Constructs a new <code>MBeanException</code> wrapping
+ * the specified exception.
+ *
+ * @param e the exception to be wrapped.
+ */
+ public MBeanException(Exception e)
+ {
+ super();
+ exception = e;
+ }
+
+ /**
+ * Constructs a new <code>MBeanException</code> wrapping
+ * the specified exception and using the supplied message.
+ *
+ * @param e the exception to be wrapped.
+ * @param message the error message to give to the user.
+ */
+ public MBeanException(Exception e, String message)
+ {
+ super(message);
+ exception = e;
+ }
+
+ /**
+ * Returns the true cause of this exception, the wrapped
+ * exception.
+ *
+ * @return the wrapped exception.
+ */
+ public Throwable getCause()
+ {
+ return exception;
+ }
+
+ /**
+ * Returns the true cause of this exception, the wrapped
+ * exception.
+ *
+ * @return the wrapped exception.
+ */
+ public Exception getTargetException()
+ {
+ return exception;
+ }
+
+}
+
Index: javax/management/OperationsException.java
===================================================================
RCS file: javax/management/OperationsException.java
diff -N javax/management/OperationsException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/OperationsException.java 13 Jun 2006 20:54:01 -0000
1.1
@@ -0,0 +1,71 @@
+/* OperationsException.java -- Thrown by management operations.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * A general superclass for all exceptions thrown by
+ * operations on management beans.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class OperationsException
+ extends JMException
+{
+
+ /**
+ * Constructs a new <code>OperationsException</code>.
+ */
+ public OperationsException()
+ {
+ super();
+ }
+
+ /**
+ * Constructs a new <code>OperationsException</code>
+ * with the specified message.
+ *
+ * @param message the error message to give to the user.
+ */
+ public OperationsException(String message)
+ {
+ super(message);
+ }
+
+}
+
Index: javax/management/ReflectionException.java
===================================================================
RCS file: javax/management/ReflectionException.java
diff -N javax/management/ReflectionException.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ javax/management/ReflectionException.java 13 Jun 2006 20:54:01 -0000
1.1
@@ -0,0 +1,113 @@
+/* ReflectionException.java -- A reflection-based management exception.
+ Copyright (C) 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 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 javax.management;
+
+/**
+ * Represents one of the reflection exceptions thrown by a
+ * management bean. When a management bean tries to perform
+ * a lookup using the reflection API and encounters an exception,
+ * it gets wrapped inside an address@hidden ReflectionException}.
+ * Calling address@hidden getTargetException()} will return the wrapped
+ * exception.
+ *
+ * @author Andrew John Hughes (address@hidden)
+ * @since 1.5
+ */
+public class ReflectionException
+ extends Exception
+{
+
+ /* Sun re-implemented causality -- don't know why, but
+ serialization demands we do too... */
+
+ /**
+ * The target exception.
+ *
+ * @serial the target exception.
+ */
+ private Exception exception;
+
+ /**
+ * Constructs a new <code>ReflectionException</code> wrapping
+ * the specified exception.
+ *
+ * @param e the exception to be wrapped.
+ */
+ public ReflectionException(Exception e)
+ {
+ super();
+ exception = e;
+ }
+
+ /**
+ * Constructs a new <code>ReflectionException</code> wrapping
+ * the specified exception and using the supplied message.
+ *
+ * @param e the exception to be wrapped.
+ * @param message the error message to give to the user.
+ */
+ public ReflectionException(Exception e, String message)
+ {
+ super(message);
+ exception = e;
+ }
+
+ /**
+ * Returns the true cause of this exception, the wrapped
+ * exception.
+ *
+ * @return the wrapped exception.
+ */
+ public Throwable getCause()
+ {
+ return exception;
+ }
+
+ /**
+ * Returns the true cause of this exception, the wrapped
+ * exception.
+ *
+ * @return the wrapped exception.
+ */
+ public Exception getTargetException()
+ {
+ return exception;
+ }
+
+}
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] classpath ChangeLog javax/management/AttributeN...,
Andrew John Hughes <=