org.n52.oxf.ows
Class ExceptionReport

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

public class ExceptionReport
extends Exception

Encapsulates Exceptions which occur on service side processing.

Author:
Theodor Foerster
See Also:
Serialized Form

Constructor Summary
ExceptionReport(String version, String language)
           
 
Method Summary
 void addException(OWSException exception)
           
 int countExceptions()
           
 Iterator<OWSException> getExceptionsIterator()
           
 String getLanguage()
           
 String getVersion()
           
 void printStackTrace()
          prints all contained Exceptions to the System.err stream.
 void printStackTrace(PrintStream s)
           
 void setLanguage(String language)
           
 void setVersion(String version)
           
 String toHtmlString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionReport

public ExceptionReport(String version,
                       String language)
Method Detail

getExceptionsIterator

public Iterator<OWSException> getExceptionsIterator()
Returns:
Returns the exceptions.

addException

public void addException(OWSException exception)
Parameters:
exceptions - The exceptions to set.

printStackTrace

public void printStackTrace()
prints all contained Exceptions to the System.err stream.

Overrides:
printStackTrace in class Throwable

printStackTrace

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

toHtmlString

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

countExceptions

public int countExceptions()
Returns:
the number of exceptions contained in this ExceptionReport.

getLanguage

public String getLanguage()
Returns:
Returns the language.

setLanguage

public void setLanguage(String language)
Parameters:
language - The language to set.

getVersion

public String getVersion()
Returns:
Returns the version.

setVersion

public void setVersion(String version)
Parameters:
version - The version to set.


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