Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ServiceException Class Reference

Handle service exception. More...

#include <ServiceException.h>

Collaboration diagram for ServiceException:
Collaboration graph

Public Member Functions

 ServiceException (std::string locator, ExceptionCode code, std::string message, std::string service)
std::string toString ()
 Generate the string representation of the exception.
std::string getService ()
 Return the service name.
ExceptionCode getCode ()
 Return the error code.

Static Public Member Functions

static std::string getCodeAsString (ExceptionCode code)
 Return the string representation of the error code.
static int getCodeAsStatusCode (ExceptionCode code)
 Return the style's identifier.
static std::string getStatusCodeAsReasonPhrase (int statusCode)
 Return the reason phrase associated with the http status code.

Private Attributes

std::string locator
 The "locator" attribute value as define by OGC specifications.
ExceptionCode code
 The "code" attribute value as define by OGC specifications.
std::string message
 The error message.
std::string service
 The service type ("wms" or "wmts")

Detailed Description

Handle service exception.

Author
Institut national de l'information géographique et forestière

Handle information used to generate the next part of the XML error message :

<ServiceException code='__CODE__' locator='__LOCATOR__' >
__MESSAGE__

Constructor & Destructor Documentation

ServiceException::ServiceException ( std::string  locator,
ExceptionCode  code,
std::string  message,
std::string  service 
)

constructeur d'une exception

Parameters
[in]locatorthe "locator" attribute value as define by OGC specifications
[in]codethe "code" attribute value as define by OGC specifications
[in]messagethe error message
[in]servicethe service type ("wms" or "wmts")

Here is the call graph for this function:

Member Function Documentation

ExceptionCode ServiceException::getCode ( )
inline

Return the error code.

Returns
code

Here is the caller graph for this function:

int ServiceException::getCodeAsStatusCode ( ExceptionCode  code)
static

Return the style's identifier.

Parameters
[in]codethe error code
Returns
HTTP status code

Here is the caller graph for this function:

std::string ServiceException::getCodeAsString ( ExceptionCode  code)
static

Return the string representation of the error code.

Parameters
[in]codethe error code
Returns
text representation

Here is the caller graph for this function:

std::string ServiceException::getService ( )
inline

Return the service name.

Returns
service

Here is the caller graph for this function:

std::string ServiceException::getStatusCodeAsReasonPhrase ( int  statusCode)
static

Return the reason phrase associated with the http status code.

Parameters
[in]statusCodeHTTP status code
Returns
reason phrase

Here is the caller graph for this function:

std::string ServiceException::toString ( )

Generate the string representation of the exception.

Returns
string representation

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: