File: exception.hpp

package info (click to toggle)
libzeep 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,356 kB
  • ctags: 3,341
  • sloc: cpp: 15,502; makefile: 118; xml: 45; ansic: 12
file content (39 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright Maarten L. Hekkelman, Radboud University 2008-2012.
//  Distributed under the Boost Software License, Version 1.0.
//     (See accompanying file LICENSE_1_0.txt or copy at
//           http://www.boost.org/LICENSE_1_0.txt)

#ifndef SOAP_EXCEPTION_H
#define SOAP_EXCEPTION_H

#include <exception>
#include <string>

namespace zeep {

/// zeep::exception is a class used to throw zeep exception.

class exception : public std::exception
{
  public:
	/// \brief Create an exception with vsprintf like parameters
				exception(const char* message, ...);

				exception(const std::string& message)
					: m_message(message) {}

//				exception(
//					XML_Parser		parser);
//
	virtual 	~exception() throw() {}

	virtual const char*
				what() const throw()			{ return m_message.c_str(); }

  protected:
	std::string	m_message;
};

}

#endif