org.opengis.webservice
Class WebServiceException

Object
  extended by Throwable
      extended by Exception
          extended by WebServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidCapabilitiesException, UnknownOperatorNameException

public class WebServiceException
extends Exception

See Also:
Serialized Form

Constructor Summary
WebServiceException(String message)
           
WebServiceException(String locator, String message)
           
WebServiceException(String locator, String message, ExceptionCode code)
           
 
Method Summary
 ExceptionCode getCode()
          Returns the code for this exception.
 String getLocator()
          Returns the class/service that has caused the exception
 void setLocator(String locator)
          Sets the class/service that has caused the exception
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebServiceException

public WebServiceException(String message)
Parameters:
message -

WebServiceException

public WebServiceException(String locator,
                           String message)
Parameters:
locator -
message -
TODO:
The argument order (locator before message) may surprises users who don't read carefully the javadoc. We could expect optional argument to appears next to mandatory ones.

WebServiceException

public WebServiceException(String locator,
                           String message,
                           ExceptionCode code)
Parameters:
locator -
message -
code -
TODO:
The argument order (locator before message) may surprises users who don't read carefully the javadoc. We could expect optional argument to appears next to mandatory ones.
Method Detail

getLocator

@UML(identifier="locator",
     specification=UNSPECIFIED)
public String getLocator()
Returns the class/service that has caused the exception


setLocator

@UML(identifier="locator",
     specification=UNSPECIFIED)
public void setLocator(String locator)
Sets the class/service that has caused the exception


getCode

public ExceptionCode getCode()
Returns the code for this exception.



Copyright © 1994-2009 Open Geospatial Consortium. All Rights Reserved.