Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) OSGi Alliance (2000, 2010). All Rights Reserved.
  *
  * 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.osgi.service.http;

A NamespaceException is thrown to indicate an error with the caller's request to register a servlet or resources into the URI namespace of the Http Service. This exception indicates that the requested alias already is in use.

Version:
$Id: 9093cd6ea6e0532fe624424738ea720993c1a31b $
public class NamespaceException extends Exception {
    static final long serialVersionUID = 7235606031147877747L;
    
Construct a NamespaceException object with a detail message.

Parameters:
message the detail message
	public NamespaceException(String message) {
		super(message);
	}

Construct a NamespaceException object with a detail message and a nested exception.

Parameters:
message The detail message.
cause The nested exception.
	public NamespaceException(String messageThrowable cause) {
		super(messagecause);
	}

Returns the nested exception.

This method predates the general purpose exception chaining mechanism. The getCause() method is now the preferred means of obtaining this information.

Returns:
The result of calling getCause().
	public Throwable getException() {
		return getCause();
	}

Returns the cause of this exception or null if no cause was set.

Returns:
The cause of this exception or null if no cause was set.
Since:
1.2
	public Throwable getCause() {
		return super.getCause();
	}

Initializes the cause of this exception to the specified value.

Parameters:
cause The cause of this exception.
Returns:
This exception.
Throws:
java.lang.IllegalArgumentException If the specified cause is this exception.
java.lang.IllegalStateException If the cause of this exception has already been set.
Since:
1.2
	public Throwable initCause(Throwable cause) {
		return super.initCause(cause);
	}
New to GrepCode? Check out our FAQ X