mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			107 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/server/qgsserverexception.h                                      *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsServerException
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
Exception base class for server exceptions.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsserverexception.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsServerException( const QString &message, int responseCode = 500 );
 | 
						|
%Docstring
 | 
						|
Constructor
 | 
						|
%End
 | 
						|
 | 
						|
    int responseCode() const;
 | 
						|
%Docstring
 | 
						|
 | 
						|
:return: the return HTTP response code associated with this exception
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
 | 
						|
%Docstring
 | 
						|
Formats the exception for sending to client
 | 
						|
 | 
						|
 | 
						|
:return: - QByteArray The formatted response.
 | 
						|
         - responseFormat: QString to store the content type of the response format.
 | 
						|
 | 
						|
The default implementation returns text/xml format.
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
class QgsOgcServiceException
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
Exception base class for service exceptions.
 | 
						|
 | 
						|
Note that this exception is associated with a default return code 200 which may be
 | 
						|
not appropriate in some situations.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsserverexception.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
    QgsOgcServiceException( const QString &code, const QString &message, const QString &locator = QString(),
 | 
						|
                            int responseCode = 200, const QString &version = QStringLiteral( "1.3.0" ) );
 | 
						|
%Docstring
 | 
						|
Construction
 | 
						|
%End
 | 
						|
 | 
						|
    QString message() const;
 | 
						|
%Docstring
 | 
						|
Returns the exception message
 | 
						|
%End
 | 
						|
 | 
						|
    QString code()    const;
 | 
						|
%Docstring
 | 
						|
Returns the exception code
 | 
						|
%End
 | 
						|
 | 
						|
    QString locator() const;
 | 
						|
%Docstring
 | 
						|
Returns the locator
 | 
						|
%End
 | 
						|
 | 
						|
    QString version() const;
 | 
						|
%Docstring
 | 
						|
Returns the exception version
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QByteArray formatResponse( QString &responseFormat /Out/ ) const;
 | 
						|
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/server/qgsserverexception.h                                      *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |