View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    * 
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   * 
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  package net.jini.io;
20  
21  import java.io.IOException;
22  
23  /**
24   * Typically used as the nested exception of a
25   * {@link java.rmi.ConnectIOException} if the constraints for a remote call
26   * cannot be satisfied. Such an exception can be thrown at the point a remote
27   * method is invoked for a variety of reasons, including:
28   * <ul>
29   * <li>A client requirement is not supported by the server.
30   * <li>A client or server requirement conflicts with some other client or
31   * server requirement.
32   * <li>A client or server requirement cannot be satisfied by the proxy
33   * implementation.
34   * <li>The local subject that would be used for authentication does not
35   * contain sufficient credentials to satisfy a client or server requirement.
36   * <li>For a client or server requirement, the proxy implementation does not
37   * implement any algorithm in common with the server (for example, because
38   * the proxy implementation only uses algorithms that are available in the
39   * client environment rather than downloading algorithm implementations).
40   * <li>A delegated remote call is being attempted, and the current time is
41   * either earlier than the granted delegation start time or later than the
42   * granted delegation stop time.
43   * </ul>
44   *
45   * @author Sun Microsystems, Inc.
46   * @since 2.0
47   * @see net.jini.core.constraint.RemoteMethodControl
48   */
49  public class UnsupportedConstraintException extends IOException {
50      private static final long serialVersionUID = -5220259094045769772L;
51  
52      /**
53       * Creates an instance with the specified detail message.
54       *
55       * @param s the detail message
56       */
57      public UnsupportedConstraintException(String s) {
58  	super(s);
59      }
60  
61      /**
62       * Creates an instance with the specified detail message and cause.
63       *
64       * @param s the detail message
65       * @param cause the cause
66       */
67      public UnsupportedConstraintException(String s, Throwable cause) {
68  	super(s, cause);
69      }
70  }