File: exception.h

package info (click to toggle)
wmmixer 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 496 kB
  • ctags: 216
  • sloc: cpp: 1,374; sh: 974; makefile: 13
file content (40 lines) | stat: -rw-r--r-- 930 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
31
32
33
34
35
36
37
38
39
40
// wmmixer - A mixer designed for WindowMaker
//
// Release 1.5
// Copyright (C) 1998  Sam Hawker <shawkie@geocities.com>
// Copyright (C) 2002 Gordon Fraser <gordon@debian.org>
// This software comes with ABSOLUTELY NO WARRANTY
// This software is free software, and you are welcome to redistribute it
// under certain conditions
// See the COPYING file for details.


#ifndef __exception_h__
#define __exception_h__

#include <stdlib.h>
#include <string.h>

//--------------------------------------------------------------------
class Exception
{
 protected:
  char* error_message_;

 public:
  Exception();
  Exception(const Exception&);
  virtual ~Exception();
  char* getErrorMessage() const;
};


//--------------------------------------------------------------------
class MixerDeviceException : public Exception
{
 public:
  MixerDeviceException(char *);
  //  virtual ~MixerDeviceException();
};

#endif //_exception_h__