public class NamespaceException extends java.lang.Exception
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.osgi.service.http.NamespaceException
All Implemented Interfaces: java.io.Serializable
A NamespaceException is thrown to indicate an error with the caller's request to register a servlet or resources into HttpService's URI namespace. This exception indicates that the requested alias is already registered.
Member Summary | |
---|---|
Constructors | |
public | NamespaceException(String) |
Construct a NamespaceException with a detail message. | |
public | NamespaceException(String, Throwable) |
Construct a NamespaceException with a detail message and a nested exception. | |
Methods | |
public Throwable | getException() |
Returns the nested exception. |
public NamespaceException(java.lang.String message)
Construct a NamespaceException with a detail message.
Parameters:
public NamespaceException(java.lang.String message,
java.lang.Throwable exception)
Construct a NamespaceException with a detail message and a nested exception.
Parameters:
public java.lang.Throwable getException()
Returns the nested exception.
Returns: the nested exception or null if there is no nested exception.
3.145.14.132