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.
 
 
 
 
 
 

35 lines
935 B

  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_CATEGORY_H
  9. #define CPPCMS_ERROR_CATEGORY_H
  10. #include <cppcms/config.h>
  11. #include <booster/system_error.h>
  12. namespace cppcms {
  13. namespace impl {
  14. namespace errc {
  15. enum {
  16. ok,
  17. protocol_violation
  18. };
  19. }
  20. class error_category : public booster::system::error_category {
  21. public:
  22. virtual char const *name() const;
  23. virtual std::string message(int cat) const;
  24. };
  25. extern const error_category cppcms_category;
  26. }
  27. }
  28. #endif