org.n52.oxf.ows
Class OWSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.n52.oxf.ows.OWSException
All Implemented Interfaces:
Serializable

public class OWSException
extends Exception

Represents an Exception occuring while service side execution.
use either one of the provided exception codes or define your own ones.

Author:
Theodor Foerster, Arne Broering
See Also:
Serialized Form

Field Summary
static String INVALID_PARAMTER_VALUE
           
static String INVALID_UPDATE_SEQUENCE
           
static String MISSING_PARAMETER_VALUE
           
static String NO_APPLICABLE_CODE
           
static String OPERATION_NOT_SUPPORTED
           
static String VERSION_NEGOTIATION_FOUND
           
 
Constructor Summary
OWSException(String[] exceptionTexts, String exceptionCode, String sendedRequest)
           
OWSException(String[] exceptionTexts, String exceptionCode, String sendedRequest, String locator)
           
 
Method Summary
 String getExceptionCode()
           
 String[] getExceptionTexts()
           
 String getLocator()
          indicates in which part the exception occured.
 String getSendedRequest()
           
 void printStackTrace(PrintStream s)
           
 void setLocator(String locator)
          indicates in which part the exception occured.
 String toHtmlString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPERATION_NOT_SUPPORTED

public static final String OPERATION_NOT_SUPPORTED
See Also:
Constant Field Values

MISSING_PARAMETER_VALUE

public static final String MISSING_PARAMETER_VALUE
See Also:
Constant Field Values

INVALID_PARAMTER_VALUE

public static final String INVALID_PARAMTER_VALUE
See Also:
Constant Field Values

VERSION_NEGOTIATION_FOUND

public static final String VERSION_NEGOTIATION_FOUND
See Also:
Constant Field Values

INVALID_UPDATE_SEQUENCE

public static final String INVALID_UPDATE_SEQUENCE
See Also:
Constant Field Values

NO_APPLICABLE_CODE

public static final String NO_APPLICABLE_CODE
See Also:
Constant Field Values
Constructor Detail

OWSException

public OWSException(String[] exceptionTexts,
                    String exceptionCode,
                    String sendedRequest)
Parameters:
exceptionTexts -
exceptionCode -
sendedRequest -

OWSException

public OWSException(String[] exceptionTexts,
                    String exceptionCode,
                    String sendedRequest,
                    String locator)
Parameters:
exceptionTexts -
exceptionCode -
sendedRequest -
locator -
Method Detail

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

toHtmlString

public String toHtmlString()
Returns:
a HTML representation of this OWSException

getExceptionCode

public String getExceptionCode()
Returns:
Returns the exceptionCode.

getExceptionTexts

public String[] getExceptionTexts()
Returns:
Returns the exceptionTexts.

getSendedRequest

public String getSendedRequest()

getLocator

public String getLocator()
indicates in which part the exception occured. This is optional!

Returns:
Returns the locator.

setLocator

public void setLocator(String locator)
indicates in which part the exception occured. This is optional!

Parameters:
locator - The locator to set.


Copyright © 2012-2013 52north.org. All Rights Reserved.