juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/src/java/org/apache/juddi/error UnvalidatableException.java RequestTimeoutException.java
Date Sun, 20 Mar 2005 22:37:01 GMT
sviens      2005/03/20 14:37:01

  Added:       src/java/org/apache/juddi/error UnvalidatableException.java
                        RequestTimeoutException.java
  Log:
  Adding Exception classes for E_unvalidatable and E_requestTimeout messages.
  
  Revision  Changes    Path
  1.1                  ws-juddi/src/java/org/apache/juddi/error/UnvalidatableException.java
  
  Index: UnvalidatableException.java
  ===================================================================
  /*
   * Copyright 2001-2004 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.error;
  
  import org.apache.juddi.datatype.response.Result;
  
  /**
   * Thrown to indicate that a UDDI Exception was encountered.
   *
   * @author Steve Viens (sviens@apache.org)
   */
  public class UnvalidatableException extends RegistryException
  {
    public UnvalidatableException(String msg)
    {
      super(
          "Client",                    // SOAP faultCode
          Result.E_UNVALIDATABLE_NMBR,   // UDDI errno
          Result.E_UNVALIDATABLE_CODE,   // UDDI errInfo errCode
          Result.E_UNVALIDATABLE_TEXT,   // UDDI errInfo text
          msg);
    }
  }
  
  
  1.1                  ws-juddi/src/java/org/apache/juddi/error/RequestTimeoutException.java
  
  Index: RequestTimeoutException.java
  ===================================================================
  /*
   * Copyright 2001-2004 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.error;
  
  import org.apache.juddi.datatype.response.Result;
  
  /**
   * Thrown to indicate that a UDDI Exception was encountered.
   *
   * @author Steve Viens (sviens@apache.org)
   */
  public class RequestTimeoutException extends RegistryException
  {
    public RequestTimeoutException(String msg)
    {
      super(
          "Client",                         // SOAP faultCode
          Result.E_REQUEST_TIMEOUT_NMBR,    // UDDI errno
          Result.E_REQUEST_TIMEOUT_CODE,    // UDDI errInfo errCode
          Result.E_REQUEST_TIMEOUT_TEXT,    // UDDI errInfo text
          msg);
    }
  }
  
  

Mime
View raw message