You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2009/10/20 22:18:47 UTC
svn commit: r827775 -
/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/
Author: tcunning
Date: Tue Oct 20 20:18:46 2009
New Revision: 827775
URL: http://svn.apache.org/viewvc?rev=827775&view=rev
Log:
JUDDI-298
Add of v3.error directory.
Added:
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AssertionNotFoundException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenExpiredException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenRequiredException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthenticationException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ErrorMessage.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/FatalErrorException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidCombinationException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidKeyPassedException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidProjectionException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidTimeException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidValueException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/KeyUnavailableException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/RegistryException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TokenAlreadyExistsException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TransferNotAllowedException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UDDIErrorHelper.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnknownUserException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnsupportedException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UserMismatchException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ValueNotAllowedException.java
webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/svn-commit.tmp
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AssertionNotFoundException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AssertionNotFoundException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AssertionNotFoundException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AssertionNotFoundException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_assertionNotFound: (30000) Signifies that a particular publisher assertion cannot be identified in a save or delete operation.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class AssertionNotFoundException extends RegistryException {
+
+ private static final long serialVersionUID = -2172986368788753140L;
+
+ public AssertionNotFoundException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_ASSERTION_NOT_FOUND));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenExpiredException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenExpiredException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenExpiredException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenExpiredException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.AuthenticationException;
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_authTokenExpired: (10110) Signifies that the authentication token information has timed out.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class AuthTokenExpiredException extends AuthenticationException {
+
+ private static final long serialVersionUID = -2993033147078083022L;
+
+ public AuthTokenExpiredException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_AUTH_TOKEN_EXPIRED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenRequiredException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenRequiredException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenRequiredException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthTokenRequiredException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.AuthenticationException;
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_authTokenRequired: (10120) Signifies that an authentication token is missing or is invalid for an API call that requires authentication.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class AuthTokenRequiredException extends AuthenticationException {
+
+ private static final long serialVersionUID = 911181181554360596L;
+
+ public AuthTokenRequiredException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_AUTH_TOKEN_REQUIRED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthenticationException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthenticationException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthenticationException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/AuthenticationException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.uddi.api_v3.DispositionReport;
+
+/**
+ * Parenent of all Authentication exceptions.
+ *
+ * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
+ */
+public class AuthenticationException extends RegistryException {
+
+ private static final long serialVersionUID = 2117503081874302954L;
+
+ public AuthenticationException(ErrorMessage message, DispositionReport dispositionReport) {
+ super(message, dispositionReport);
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ErrorMessage.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ErrorMessage.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ErrorMessage.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ErrorMessage.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.config.ResourceConfig;
+
+/**
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class ErrorMessage {
+ private String message;
+ private String value;
+
+ public ErrorMessage(String messageCode) {
+ this(messageCode, null);
+ }
+
+ public ErrorMessage(String messageCode, String value) {
+ this.message = ResourceConfig.getGlobalMessage(messageCode);
+ this.value = value;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public String toString() {
+ if (value == null || value.length() == 0)
+ return message;
+ else
+ return message + ": " + value;
+
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/FatalErrorException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/FatalErrorException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/FatalErrorException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/FatalErrorException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_fatalError: (10500) Signifies that a serious technical error has occurred while processing the request.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class FatalErrorException extends RegistryException {
+
+ private static final long serialVersionUID = 6396216072725959470L;
+
+ public FatalErrorException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_FATAL_ERROR));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidCombinationException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidCombinationException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidCombinationException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidCombinationException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_invalidCombination: (40500) Signifies conflicting find qualifiers have been specified. The find qualifiers that caused the problem SHOULD be
+ * clearly indicated in the error text.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class InvalidCombinationException extends RegistryException {
+
+ private static final long serialVersionUID = 9124050613724790829L;
+
+ public InvalidCombinationException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_INVALID_COMBINATION));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidKeyPassedException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidKeyPassedException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidKeyPassedException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidKeyPassedException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_invalidKeyPassed: (10210) Signifies that the uddiKey value passed did not match with any known key values. The details on the invalid key SHOULD be
+ * included in the dispositionReport element.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class InvalidKeyPassedException extends RegistryException {
+
+ private static final long serialVersionUID = 3302122187004457095L;
+
+ public InvalidKeyPassedException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_INVALID_KEY_PASSED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidProjectionException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidProjectionException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidProjectionException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidProjectionException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_invalidProjection: (20230) Signifies that an attempt was made to save a businessEntity containing a service projection where the serviceKey does not
+ * belong to the business designated by the businessKey. The serviceKey of at least one such businessService SHOULD be included in the dispositionReport.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class InvalidProjectionException extends RegistryException {
+
+ private static final long serialVersionUID = -2447287220774262681L;
+
+ public InvalidProjectionException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_INVALID_PROJECTION));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidTimeException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidTimeException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidTimeException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidTimeException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_invalidTime: (40030) Signifies that the time period, the date/time, or the pair of date/time is invalid. The error structure
+ * signifies the condition that occurred and the error text clearly calls out the cause of the problem.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class InvalidTimeException extends RegistryException {
+
+ private static final long serialVersionUID = 8225896425924629956L;
+
+ public InvalidTimeException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_INVALID_KEY_PASSED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidValueException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidValueException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidValueException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/InvalidValueException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_invalidValue: (20200) This error code has multiple uses. This error code applies to the subscription APIs and the value set APIs. It
+ * can be used to indicate that a value that was passed in a keyValue attribute did not pass validation. This applies to checked value
+ * sets that are referenced using keyedReferences. The error text SHOULD clearly indicate the key and value combination that failed validation.
+ * It can also be used to indicate that a chunkToken supplied is invalid. This applies in both subscription and value set APIs. The error text
+ * SHOULD clearly indicate the reason for failure.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class InvalidValueException extends RegistryException {
+
+ private static final long serialVersionUID = -5108592555540144175L;
+
+ public InvalidValueException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_INVALID_VALUE));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/KeyUnavailableException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/KeyUnavailableException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/KeyUnavailableException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/KeyUnavailableException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_keyUnavailable: (40100) Signifies that the proposed key is in a partition that has already been assigned to some other publisher.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class KeyUnavailableException extends RegistryException {
+
+ private static final long serialVersionUID = 7532508672433733387L;
+
+ public KeyUnavailableException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_KEY_UNAVAILABLE));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/RegistryException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/RegistryException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/RegistryException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/RegistryException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.uddi.v3_service.DispositionReportFaultMessage;
+import org.uddi.api_v3.DispositionReport;
+
+/**
+ * Parent Exception for all UDDI registry exceptions
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class RegistryException extends DispositionReportFaultMessage {
+
+ private static final long serialVersionUID = -4200811689537798618L;
+
+ public RegistryException(ErrorMessage message, DispositionReport dispReport) {
+ super(message.toString(), dispReport);
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TokenAlreadyExistsException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TokenAlreadyExistsException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TokenAlreadyExistsException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TokenAlreadyExistsException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_tokenAlreadyExists: (40070) Signifies that one or more of the businessKey or tModelKey elements that identify entities to be transferred
+ * are not owned by the publisher identified by the authInfo element. The error text SHOULD clearly indicate which entity keys caused the error.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class TokenAlreadyExistsException extends RegistryException {
+
+ private static final long serialVersionUID = 2721076133362327262L;
+
+ public TokenAlreadyExistsException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_TOKEN_ALREADY_EXISTS));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TransferNotAllowedException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TransferNotAllowedException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TransferNotAllowedException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/TransferNotAllowedException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_transferNotAllowed: (40600) Signifies that the transfer of one or more entities has been by either the custodial node or
+ * the target node because the transfer token has expired or an attempt was made to transfer an unauthorized entity
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class TransferNotAllowedException extends RegistryException {
+
+ private static final long serialVersionUID = 8070707155768168717L;
+
+ public TransferNotAllowedException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_TRANSFER_NOT_ALLOWED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UDDIErrorHelper.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UDDIErrorHelper.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UDDIErrorHelper.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UDDIErrorHelper.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,133 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.config.ResourceConfig;
+import org.uddi.api_v3.DispositionReport;
+import org.uddi.api_v3.Result;
+import org.uddi.api_v3.ErrInfo;
+
+/**
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class UDDIErrorHelper {
+
+ public static final int E_ASSERTION_NOT_FOUND = 30000;
+ public static final int E_AUTH_TOKEN_EXPIRED = 10110;
+ public static final int E_AUTH_TOKEN_REQUIRED = 10120;
+ public static final int E_ACCOUNT_LIMIT_EXCEEDED = 10160;
+ public static final int E_BUSY = 10400;
+ public static final int E_CATEGORIZATION_NOT_ALLOWED = 20100;
+ public static final int E_FATAL_ERROR = 10500;
+ public static final int E_INVALID_KEY_PASSED = 10210;
+ public static final int E_INVALID_PROJECTION = 20230;
+ public static final int E_INVALID_CATEGORY = 20000;
+ public static final int E_INVALID_COMPLETION_STATUS = 30100;
+ public static final int E_INVALID_URL_PASSED = 10220;
+ public static final int E_INVALID_VALUE = 20200;
+ public static final int E_INVALID_COMBINATION = 40500;
+ public static final int E_KEY_RETIRED = 10310;
+ public static final int E_KEY_UNAVAILABLE = 40100;
+ public static final int E_LANGUAGE_ERROR = 10060;
+ public static final int E_MESSAGE_TOO_LARGE = 30110;
+ public static final int E_NAME_TOO_LONG = 10020;
+ public static final int E_OPERATOR_MISMATCH = 10130;
+ public static final int E_PUBLISHER_CANCELLED = 30220;
+ public static final int E_REQUEST_DENIED = 30210;
+ public static final int E_SECRET_UNKNOWN = 30230;
+ public static final int E_SUCCESS = 0;
+ public static final int E_TOO_MANY_OPTIONS = 10030;
+ public static final int E_TRANSFER_ABORTED = 30200;
+ public static final int E_UNRECOGNIZED_VERSION = 10040;
+ public static final int E_UNKNOWN_USER = 10150;
+ public static final int E_UNSUPPORTED = 10050;
+ public static final int E_USER_MISMATCH = 10140;
+ public static final int E_VALUE_NOT_ALLOWED = 20210;
+ public static final int E_UNVALIDATABLE = 20220;
+ public static final int E_REQUEST_TIMEOUT = 20240;
+ public static final int E_INVALID_TIME = 40030;
+ public static final int E_RESULT_SET_TOO_LARGE = 40300;
+ public static final int E_TOKEN_ALREADY_EXISTS = 40070;
+ public static final int E_TRANSFER_NOT_ALLOWED = 40600;
+
+ public static final String lookupErrCode(int errno) {
+ switch (errno) {
+ case E_ACCOUNT_LIMIT_EXCEEDED : return "E_accountLimitExceeded";
+ case E_ASSERTION_NOT_FOUND : return "E_assertionNotFound";
+ case E_AUTH_TOKEN_EXPIRED : return "E_authTokenExpired";
+ case E_AUTH_TOKEN_REQUIRED : return "E_authTokenRequired";
+ case E_BUSY : return "E_busy";
+ case E_CATEGORIZATION_NOT_ALLOWED : return "E_categorizationNotAllowed";
+ case E_FATAL_ERROR : return "E_fatalError";
+ case E_INVALID_COMBINATION : return "E_invalidCombination";
+ case E_INVALID_CATEGORY : return "E_invalidCategory";
+ case E_INVALID_COMPLETION_STATUS : return "E_invalidCompletionStatus";
+ case E_INVALID_KEY_PASSED : return "E_invalidKeyPassed";
+ case E_KEY_UNAVAILABLE : return "E_keyUnavailable";
+ case E_INVALID_PROJECTION : return "E_invalidProjection";
+ case E_INVALID_TIME : return "E_invalidTime";
+ case E_INVALID_URL_PASSED : return "E_invalidURLPassed";
+ case E_INVALID_VALUE : return "E_invalidValue";
+ case E_KEY_RETIRED : return "E_keyRetired";
+ case E_LANGUAGE_ERROR : return "E_languageError";
+ case E_MESSAGE_TOO_LARGE : return "E_messageTooLarge";
+ case E_NAME_TOO_LONG : return "E_nameTooLong";
+ case E_OPERATOR_MISMATCH : return "E_operatorMismatch";
+ case E_PUBLISHER_CANCELLED : return "E_publisherCancelled";
+ case E_REQUEST_DENIED : return "E_requestDenied";
+ case E_REQUEST_TIMEOUT : return "E_requestTimeout";
+ case E_RESULT_SET_TOO_LARGE : return "E_resultSetTooLarge";
+ case E_SECRET_UNKNOWN : return "E_secretUnknown";
+ case E_SUCCESS : return "E_success";
+ case E_TOO_MANY_OPTIONS : return "E_tooManyOptions";
+ case E_TRANSFER_ABORTED : return "E_transferAborted";
+ case E_UNKNOWN_USER : return "E_unknownUser";
+ case E_UNRECOGNIZED_VERSION : return "E_unrecognizedVersion";
+ case E_UNSUPPORTED : return "E_unsupported";
+ case E_UNVALIDATABLE : return "E_unvalidatable";
+ case E_USER_MISMATCH : return "E_userMismatch";
+ case E_VALUE_NOT_ALLOWED : return "E_valueNotAllowed";
+ case E_TOKEN_ALREADY_EXISTS : return "E_tokenAlreadyExists";
+ case E_TRANSFER_NOT_ALLOWED : return "E_transferNotAllowed";
+ default : return null;
+ }
+ }
+
+ public static final String lookupErrText(int errno) {
+ String errCode = lookupErrCode(errno);
+ if (errCode == null)
+ return null;
+ return ResourceConfig.getGlobalMessage(errCode);
+ }
+
+ public static final DispositionReport buildDispositionReport(int errNo) {
+ DispositionReport dr = new DispositionReport();
+ Result res = new Result();
+ res.setErrno(errNo);
+
+ ErrInfo ei = new ErrInfo();
+ ei.setErrCode(lookupErrCode(errNo));
+ ei.setValue(lookupErrText(errNo));
+
+ res.setErrInfo(ei);
+
+ dr.getResult().add(res);
+
+ return dr;
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnknownUserException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnknownUserException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnknownUserException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnknownUserException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.AuthenticationException;
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_unknownUser: (10150) Signifies that the user ID and password pair passed in a get_authToken API is not known to the UDDI node or is not valid.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class UnknownUserException extends AuthenticationException {
+
+ private static final long serialVersionUID = -3435412795602392194L;
+
+ public UnknownUserException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_UNKNOWN_USER));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnsupportedException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnsupportedException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnsupportedException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UnsupportedException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_unsupported: (10050) Signifies that the implementer does not support a feature or API.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class UnsupportedException extends RegistryException {
+
+ private static final long serialVersionUID = -2979768558052264874L;
+
+ public UnsupportedException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_UNSUPPORTED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UserMismatchException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UserMismatchException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UserMismatchException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/UserMismatchException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_userMismatch: (10140) Signifies that an attempt was made to use the publishing API to change data that is controlled by another party.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class UserMismatchException extends RegistryException {
+
+ private static final long serialVersionUID = -3459894364164959205L;
+
+ public UserMismatchException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_USER_MISMATCH));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ValueNotAllowedException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ValueNotAllowedException.java?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ValueNotAllowedException.java (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/ValueNotAllowedException.java Tue Oct 20 20:18:46 2009
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.juddi.v3.error;
+
+import org.apache.juddi.v3.error.ErrorMessage;
+import org.apache.juddi.v3.error.RegistryException;
+import org.apache.juddi.v3.error.UDDIErrorHelper;
+
+/**
+ * E_valueNotAllowed: (20210) Signifies that a value did not pass validation because of contextual issues. The value may be valid in some contexts, but
+ * not in the context used. The error text MAY contain information about the contextual problem.
+ *
+ * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
+ */
+public class ValueNotAllowedException extends RegistryException {
+
+ private static final long serialVersionUID = -4003033708851434957L;
+
+ public ValueNotAllowedException(ErrorMessage message) {
+ super(message, UDDIErrorHelper.buildDispositionReport(UDDIErrorHelper.E_VALUE_NOT_ALLOWED));
+ }
+}
Added: webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/svn-commit.tmp
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/svn-commit.tmp?rev=827775&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/svn-commit.tmp (added)
+++ webservices/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/error/svn-commit.tmp Tue Oct 20 20:18:46 2009
@@ -0,0 +1,24 @@
+JUDDI-298
+Check in v3.error changes.
+--This line, and those below, will be ignored--
+
+M UDDIErrorHelper.java
+M TokenAlreadyExistsException.java
+M InvalidValueException.java
+M InvalidProjectionException.java
+M AuthTokenExpiredException.java
+M AssertionNotFoundException.java
+M UnsupportedException.java
+M KeyUnavailableException.java
+M UnknownUserException.java
+M InvalidKeyPassedException.java
+M FatalErrorException.java
+M AuthTokenRequiredException.java
+M UserMismatchException.java
+M InvalidTimeException.java
+M ValueNotAllowedException.java
+M RegistryException.java
+M InvalidCombinationException.java
+M TransferNotAllowedException.java
+M ErrorMessage.java
+M AuthenticationException.java
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org