ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // See accompanying file COPYING.TXT file for licensing details.
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef CPPCMS_ERROR_H
  9. #define CPPCMS_ERROR_H
  10. #include <cppcms/defs.h>
  11. #include <string>
  12. #include <booster/backtrace.h>
  13. namespace cppcms {
  14. ///
  15. /// \brief Exception thrown by CppCMS framework.
  16. ///
  17. /// Every exception that is thrown from CppCMS modules derived from this exception.
  18. ///
  19. class CPPCMS_API cppcms_error : public booster::runtime_error {
  20. std::string strerror(int err);
  21. public:
  22. ///
  23. /// Create an object with error code err (errno) and a message \a error
  24. ///
  25. cppcms_error(int err,std::string const &error);
  26. ///
  27. /// Create an object with message \a error
  28. ///
  29. cppcms_error(std::string const &error) : booster::runtime_error(error) {};
  30. };
  31. }
  32. #endif