File: errorhandler.h

package info (click to toggle)
librudiments0 0.27-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,528 kB
  • ctags: 2,284
  • sloc: cpp: 14,657; sh: 7,547; ansic: 2,664; makefile: 945; xml: 15
file content (30 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
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
// Copyright (c) 2002 David Muse
// See the COPYING file for more information.

#ifndef RUDIMENTS_ERRORHANDLER_H
#define RUDIMENTS_ERRORHANDLER_H

#include <rudiments/private/errorhandlerincludes.h>

// The errorhandler class is a base class for many rudiments classes.

class errorhandler {
	public:
		char	*getError();
			// When a method in a class that inherits from
			// errorhandler returns a return value indicating an
			// error, this method may called to retrieve the
			// error message.

	protected:
		void	clearError();
		void	appendError(const char *string);
		void	appendError(char character);
		void	appendError(long number);
		void	appendError(double number);

	#include <rudiments/private/errorhandler.h>

};

#endif