mkvtoolnix/error.h

37 lines
776 B
C
Raw Normal View History

2003-02-16 11:44:19 +00:00
/*
mkvmerge -- utility for splicing together matroska files
from component media subtypes
error.h
Written by Moritz Bunkus <moritz@bunkus.org>
Distributed under the GPL
see the file COPYING for details
or visit http://www.gnu.org/copyleft/gpl.html
*/
2003-02-16 12:17:11 +00:00
/*!
\file
\version \$Id: error.h,v 1.2 2003/02/16 12:17:10 mosu Exp $
\brief class definitions for the error exception class
\author Moritz Bunkus <moritz @ bunkus.org>
*/
2003-02-16 11:44:19 +00:00
#ifndef __ERROR_H__
#define __ERROR_H__
#include <malloc.h>
#include <string.h>
class error_c {
private:
char *error;
public:
error_c(char *nerror) { error = strdup(nerror); };
~error_c() { free(error); };
char *get_error() { return error; };
};
#endif // __ERROR_H__