~brianaker/libmemcached/update-m4-sept

« back to all changes in this revision

Viewing changes to libtest/result/fatal.hpp

  • Committer: Brian Aker
  • Date: 2013-01-28 22:51:05 UTC
  • mfrom: (1079.1.65 workspace)
  • mto: This revision was merged to the branch mainline in revision 1099.
  • Revision ID: brian@tangent.org-20130128225105-8z352439kwu8vgku
Merge with 1.0 trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
  fatal(const fatal&);
47
47
 
48
 
  ~fatal() throw();
49
 
 
50
 
  const char* what() const throw()
51
 
  {
52
 
    return &_error_message[0];
53
 
  }
54
 
 
55
48
  // The following are just for unittesting the exception class
56
 
  static bool is_disabled();
57
 
  static void disable();
58
 
  static void enable();
59
 
  static uint32_t disabled_counter();
60
 
  static void increment_disabled_counter();
 
49
  static bool is_disabled() throw();
 
50
  static void disable() throw();
 
51
  static void enable() throw();
 
52
  static uint32_t disabled_counter() throw();
 
53
  static void increment_disabled_counter() throw();
61
54
 
62
55
private:
63
 
  char* _error_message;
64
 
  int _error_message_size;
65
56
};
66
57
 
67
58
} // namespace libtest