From ceab10ccc431cbd1b1f4a5bd6d285e40fb34e787 Mon Sep 17 00:00:00 2001 From: Audrius Meskauskas Date: Sat, 22 Oct 2005 19:57:01 +0000 Subject: 2005-10-22 Audrius Meskauskas * org/omg/CORBA/ACTIVITY_COMPLETED.java, org/omg/CORBA/ACTIVITY_REQUIRED.java, org/omg/CORBA/BAD_QOS.java, org/omg/CORBA/CODESET_INCOMPATIBLE.java, org/omg/CORBA/INVALID_ACTIVITY.java, org/omg/CORBA/REBIND.java, org/omg/CORBA/TIMEOUT.java, org/omg/CORBA/TRANSACTION_MODE.java, org/omg/CORBA/TRANSACTION_UNAVAILABLE.java: New exceptions. --- org/omg/CORBA/ACTIVITY_COMPLETED.java | 102 ++++++++++++++++++++++++++++ org/omg/CORBA/ACTIVITY_REQUIRED.java | 100 ++++++++++++++++++++++++++++ org/omg/CORBA/BAD_QOS.java | 99 +++++++++++++++++++++++++++ org/omg/CORBA/CODESET_INCOMPATIBLE.java | 103 +++++++++++++++++++++++++++++ org/omg/CORBA/INVALID_ACTIVITY.java | 100 ++++++++++++++++++++++++++++ org/omg/CORBA/REBIND.java | 99 +++++++++++++++++++++++++++ org/omg/CORBA/TIMEOUT.java | 98 +++++++++++++++++++++++++++ org/omg/CORBA/TRANSACTION_MODE.java | 99 +++++++++++++++++++++++++++ org/omg/CORBA/TRANSACTION_UNAVAILABLE.java | 99 +++++++++++++++++++++++++++ 9 files changed, 899 insertions(+) create mode 100644 org/omg/CORBA/ACTIVITY_COMPLETED.java create mode 100644 org/omg/CORBA/ACTIVITY_REQUIRED.java create mode 100644 org/omg/CORBA/BAD_QOS.java create mode 100644 org/omg/CORBA/CODESET_INCOMPATIBLE.java create mode 100644 org/omg/CORBA/INVALID_ACTIVITY.java create mode 100644 org/omg/CORBA/REBIND.java create mode 100644 org/omg/CORBA/TIMEOUT.java create mode 100644 org/omg/CORBA/TRANSACTION_MODE.java create mode 100644 org/omg/CORBA/TRANSACTION_UNAVAILABLE.java (limited to 'org') diff --git a/org/omg/CORBA/ACTIVITY_COMPLETED.java b/org/omg/CORBA/ACTIVITY_COMPLETED.java new file mode 100644 index 000000000..ea234e620 --- /dev/null +++ b/org/omg/CORBA/ACTIVITY_COMPLETED.java @@ -0,0 +1,102 @@ +/* ACTIVITY_COMPLETED.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * The ACTIVITY_COMPLETED indicates that the Activity context in which the + * method call was made has been completed due to a timeout of either the + * Activity itself or a transaction that encompasses the Activity. It also + * may mean that the Activity is completed in a manner other than that + * originally requested. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class ACTIVITY_COMPLETED + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 463786710302308798L; + + /** + * Creates ACTIVITY_COMPLETED with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public ACTIVITY_COMPLETED(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates ACTIVITY_COMPLETED with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public ACTIVITY_COMPLETED() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a ACTIVITY_COMPLETED exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public ACTIVITY_COMPLETED(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created ACTIVITY_COMPLETED exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public ACTIVITY_COMPLETED(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/ACTIVITY_REQUIRED.java b/org/omg/CORBA/ACTIVITY_REQUIRED.java new file mode 100644 index 000000000..c0c72b524 --- /dev/null +++ b/org/omg/CORBA/ACTIVITY_REQUIRED.java @@ -0,0 +1,100 @@ +/* ACTIVITY_REQUIRED.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * The ACTIVITY_REQUIRED system exception indicates that an Activity context was + * necessary to perform the invoked operation, but one was not found + * associated with the calling thread. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class ACTIVITY_REQUIRED + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = -5684213471781455027L; + + /** + * Creates ACTIVITY_REQUIRED with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public ACTIVITY_REQUIRED(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates ACTIVITY_REQUIRED with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public ACTIVITY_REQUIRED() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a ACTIVITY_REQUIRED exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public ACTIVITY_REQUIRED(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created ACTIVITY_REQUIRED exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public ACTIVITY_REQUIRED(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/BAD_QOS.java b/org/omg/CORBA/BAD_QOS.java new file mode 100644 index 000000000..ba8a0df32 --- /dev/null +++ b/org/omg/CORBA/BAD_QOS.java @@ -0,0 +1,99 @@ +/* BAD_QOS.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * The BAD_QOS is raised when the object cannot support the quality of + * service required by an invocation parameter. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class BAD_QOS + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 4746597571263117454L; + + /** + * Creates BAD_QOS with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public BAD_QOS(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates BAD_QOS with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public BAD_QOS() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a BAD_QOS exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public BAD_QOS(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created BAD_QOS exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public BAD_QOS(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/CODESET_INCOMPATIBLE.java b/org/omg/CORBA/CODESET_INCOMPATIBLE.java new file mode 100644 index 000000000..41ccaf492 --- /dev/null +++ b/org/omg/CORBA/CODESET_INCOMPATIBLE.java @@ -0,0 +1,103 @@ +/* CODESET_INCOMPATIBLE.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised when client and server are unable to reach any consensus on which + * code set should be used to represent the characters. This happens when + * neither server nor client cannot convert from the native code set of the + * corresponding side, there is no shared codeset from that both sides could + * convert and additionally the client and server* native sets are too + * different to communicate anyway without the massive data loss. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class CODESET_INCOMPATIBLE + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = -8784048396454171789L; + + /** + * Creates CODESET_INCOMPATIBLE with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public CODESET_INCOMPATIBLE(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates CODESET_INCOMPATIBLE with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public CODESET_INCOMPATIBLE() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a CODESET_INCOMPATIBLE exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public CODESET_INCOMPATIBLE(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created CODESET_INCOMPATIBLE exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public CODESET_INCOMPATIBLE(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/INVALID_ACTIVITY.java b/org/omg/CORBA/INVALID_ACTIVITY.java new file mode 100644 index 000000000..a6e60d02a --- /dev/null +++ b/org/omg/CORBA/INVALID_ACTIVITY.java @@ -0,0 +1,100 @@ +/* INVALID_ACTIVITY.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised when the transaction or Activity is resumed in a different context + * than from which it was suspended. It is also raised when the invocation is + * not incompatible with the Activity’s current state. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class INVALID_ACTIVITY + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 7907846629733712546L; + + /** + * Creates INVALID_ACTIVITY with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public INVALID_ACTIVITY(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates INVALID_ACTIVITY with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public INVALID_ACTIVITY() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a INVALID_ACTIVITY exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public INVALID_ACTIVITY(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created INVALID_ACTIVITY exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public INVALID_ACTIVITY(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/REBIND.java b/org/omg/CORBA/REBIND.java new file mode 100644 index 000000000..9480906cc --- /dev/null +++ b/org/omg/CORBA/REBIND.java @@ -0,0 +1,99 @@ +/* REBIND.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised on the failure of the requested or implied attempt to + * rebind an object reference. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class REBIND + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 823920851143467547L; + + /** + * Creates REBIND with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public REBIND(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates REBIND with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public REBIND() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a REBIND exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public REBIND(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created REBIND exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public REBIND(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/TIMEOUT.java b/org/omg/CORBA/TIMEOUT.java new file mode 100644 index 000000000..44ae8b31c --- /dev/null +++ b/org/omg/CORBA/TIMEOUT.java @@ -0,0 +1,98 @@ +/* TIMEOUT.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised when no delivery has been made during the specified timeout duration. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class TIMEOUT + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 4674850648191359518L; + + /** + * Creates TIMEOUT with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public TIMEOUT(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates TIMEOUT with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public TIMEOUT() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a TIMEOUT exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public TIMEOUT(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created TIMEOUT exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public TIMEOUT(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/TRANSACTION_MODE.java b/org/omg/CORBA/TRANSACTION_MODE.java new file mode 100644 index 000000000..5f1981ba4 --- /dev/null +++ b/org/omg/CORBA/TRANSACTION_MODE.java @@ -0,0 +1,99 @@ +/* TRANSACTION_MODE.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised when the TransactionPolicy in the IOR is not the same as the current + * transaction mode. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class TRANSACTION_MODE + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 681236728492128745L; + + /** + * Creates TRANSACTION_MODE with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public TRANSACTION_MODE(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates TRANSACTION_MODE with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public TRANSACTION_MODE() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a TRANSACTION_MODE exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public TRANSACTION_MODE(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created TRANSACTION_MODE exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public TRANSACTION_MODE(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} diff --git a/org/omg/CORBA/TRANSACTION_UNAVAILABLE.java b/org/omg/CORBA/TRANSACTION_UNAVAILABLE.java new file mode 100644 index 000000000..dc808a23c --- /dev/null +++ b/org/omg/CORBA/TRANSACTION_UNAVAILABLE.java @@ -0,0 +1,99 @@ +/* TRANSACTION_UNAVAILABLE.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., 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 org.omg.CORBA; + +import java.io.Serializable; + +/** + * Raised in response to the abnormal termination of the transaction + * service. + * + * @since 1.5 + * + * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) + */ +public class TRANSACTION_UNAVAILABLE + extends SystemException + implements Serializable +{ + /** + * Use serialVersionUID (v1.5) for interoperability. + */ + private static final long serialVersionUID = 6340246200933309385L; + + /** + * Creates TRANSACTION_UNAVAILABLE with the default minor code of 0, + * completion state COMPLETED_NO and the given explaining message. + * @param reason the explaining message. + */ + public TRANSACTION_UNAVAILABLE(String message) + { + super(message, 0, CompletionStatus.COMPLETED_NO); + } + + /** + * Creates TRANSACTION_UNAVAILABLE with the default minor code of 0 and a + * completion state COMPLETED_NO. + */ + public TRANSACTION_UNAVAILABLE() + { + super("", 0, CompletionStatus.COMPLETED_NO); + } + + /** Creates a TRANSACTION_UNAVAILABLE exception with the specified minor + * code and completion status. + * @param minor additional error code. + * @param completed the method completion status. + */ + public TRANSACTION_UNAVAILABLE(int minor, CompletionStatus completed) + { + super("", minor, completed); + } + + /** + * Created TRANSACTION_UNAVAILABLE exception, providing full information. + * @param reason explaining message. + * @param minor additional error code (the "minor"). + * @param completed the method completion status. + */ + public TRANSACTION_UNAVAILABLE(String reason, int minor, CompletionStatus completed) + { + super(reason, minor, completed); + } +} -- cgit v1.2.1