diff options
author | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2005-06-16 20:34:33 +0000 |
---|---|---|
committer | Audrius Meskauskas <audriusa@Bioinformatics.org> | 2005-06-16 20:34:33 +0000 |
commit | aeb2b82937ff0d6b13fe52df6c93264ed57a756c (patch) | |
tree | 908996ebb000cc1d63ea1dd04cc0180d803bfab4 /org | |
parent | 3e84c4b50760bc96b8ab8f8c5097325d93b8f106 (diff) | |
download | classpath-aeb2b82937ff0d6b13fe52df6c93264ed57a756c.tar.gz |
2005-06-16 Audrius Meskauskas <AudriusA@Bioinformatics.org>
* org/omg/CosNaming/NamingContextPackage/CannotProceed.java,
org/omg/CosNaming/NamingContextPackage/NotEmpty.java,
org/omg/CosNaming/NamingContextPackage/NotFound.java:
Added 1.4 constructors.
* org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java:
Added 1.4 constructors and serialVersionUID.
Diffstat (limited to 'org')
4 files changed, 72 insertions, 2 deletions
diff --git a/org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java b/org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java index 0431daf65..179d33916 100644 --- a/org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java +++ b/org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java @@ -41,6 +41,8 @@ package org.omg.CosNaming.NamingContextExtPackage; import org.omg.CORBA.UserException; import org.omg.CORBA.portable.IDLEntity; +import java.io.Serializable; + /** * The exception is thrown if the passed address is empty or otherwise invalid. * @@ -48,6 +50,27 @@ import org.omg.CORBA.portable.IDLEntity; */ public final class InvalidAddress extends UserException - implements IDLEntity + implements IDLEntity, Serializable { -} + /** + * Use serialVersionUID (v1.4) for interoperability. + */ + private static final long serialVersionUID = -3775583235364760385L; + + /** + * Create an exception with no message. + */ + public InvalidAddress() + { + } + + /** + * Create an exception with explaining message. + * + * @since 1.4 + */ + public InvalidAddress(String why) + { + super(why); + } +}
\ No newline at end of file diff --git a/org/omg/CosNaming/NamingContextPackage/CannotProceed.java b/org/omg/CosNaming/NamingContextPackage/CannotProceed.java index 4ee0df89b..6d05e6e6c 100644 --- a/org/omg/CosNaming/NamingContextPackage/CannotProceed.java +++ b/org/omg/CosNaming/NamingContextPackage/CannotProceed.java @@ -84,4 +84,19 @@ public final class CannotProceed cxt = _cxt; rest_of_name = _rest_of_name; } + + /** + * Create an exception with the initialised fields and explaining + * message. + * + * @since 1.4 + */ + public CannotProceed(String why, NamingContext _cxt, + NameComponent[] _rest_of_name + ) + { + super(why); + cxt = _cxt; + rest_of_name = _rest_of_name; + } }
\ No newline at end of file diff --git a/org/omg/CosNaming/NamingContextPackage/NotEmpty.java b/org/omg/CosNaming/NamingContextPackage/NotEmpty.java index f2d6004b5..c9bf2793f 100644 --- a/org/omg/CosNaming/NamingContextPackage/NotEmpty.java +++ b/org/omg/CosNaming/NamingContextPackage/NotEmpty.java @@ -54,4 +54,21 @@ public final class NotEmpty * Use serialVersionUID (v1.4) for interoperability. */ private static final long serialVersionUID = 7120362687417045881L; + + /** + * Create an exception with no message. + */ + public NotEmpty() + { + } + + /** + * Create an exception with explaining message. + * + * @since 1.4 + */ + public NotEmpty(String why) + { + super(why); + } }
\ No newline at end of file diff --git a/org/omg/CosNaming/NamingContextPackage/NotFound.java b/org/omg/CosNaming/NamingContextPackage/NotFound.java index 6bfff3a71..1651cdd89 100644 --- a/org/omg/CosNaming/NamingContextPackage/NotFound.java +++ b/org/omg/CosNaming/NamingContextPackage/NotFound.java @@ -83,4 +83,19 @@ public final class NotFound why = _why; rest_of_name = _rest_of_name; } + + /** + * Creates the exception, intialising the fields to the given values and + * also providing the explaining string. + * + * @since 1.4 + */ + public NotFound(String explanation, NotFoundReason _why, + NameComponent[] _rest_of_name + ) + { + super(explanation); + why = _why; + rest_of_name = _rest_of_name; + } }
\ No newline at end of file |