NamespaceException

Syntax

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

Description

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
publicNamespaceException(String)
 Construct a NamespaceException with a detail message.
publicNamespaceException(String, Throwable)
 Construct a NamespaceException with a detail message and a nested exception.
Methods
public ThrowablegetException()
 Returns the nested exception.

Constructors

NamespaceException(String)
public NamespaceException(java.lang.String message)

Construct a NamespaceException with a detail message.

Parameters:

message— the detail message

NamespaceException(String, Throwable)
public NamespaceException(java.lang.String message,
           java.lang.Throwable exception)

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

Parameters:

message— the detail message

exception— the nested exception

Methods

getException()
public java.lang.Throwable getException()

Returns the nested exception.

Returns: the nested exception or null if there is no nested exception.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.232.189