diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-api/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java | 63 |
1 files changed, 39 insertions, 24 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java index 62d1b07f23..189e713e97 100644 --- a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java +++ b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/NoSuchServiceException.java @@ -1,41 +1,56 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. + * Copyright(C) OASIS(R) 2005,2010. All Rights Reserved. + * OASIS trademark, IPR and other policies apply. */ - package org.oasisopen.sca; -public class NoSuchServiceException extends Exception { - private static final long serialVersionUID = -3542376318558454581L; +/** + * This exception signals that the given SCA service does not exist. + */ +public class NoSuchServiceException extends Exception { + /** + * Constructs a NoSuchServiceException with no detail message. + */ public NoSuchServiceException() { - super((Throwable)null); + super(); } + /** + * Constructs a NoSuchServiceException with the specified detail + * message. + * + * @param message the detail message + */ public NoSuchServiceException(String message) { super(message); } - public NoSuchServiceException(Throwable cause) { - super(cause); - } - + /** + * Constructs a NoSuchServiceException with the specified detail + * message and cause. + * + * The detail message associated with <code>cause</code> is not + * automatically incorporated in this exception's detail message. + * + * @param message the detail message + * @param cause the cause, or null if the cause is nonexistent + * or unknown + */ public NoSuchServiceException(String message, Throwable cause) { super(message, cause); } + + /** + * Constructs a NoSuchServiceException with the specified cause and a + * detail message of <tt>(cause==null ? null : cause.toString())</tt>. + * + * @param cause the cause, or null if the cause is nonexistent + * or unknown + */ + public NoSuchServiceException(Throwable cause) { + super(cause); + } + private static final long serialVersionUID = 6761623124602414622L; } |