/* mkvmerge -- utility for splicing together matroska files from component media subtypes error.h Written by Moritz Bunkus Distributed under the GPL see the file COPYING for details or visit http://www.gnu.org/copyleft/gpl.html */ /*! \file \version \$Id: error.h,v 1.5 2003/02/27 09:52:37 mosu Exp $ \brief class definitions for the error exception class \author Moritz Bunkus */ #ifndef __ERROR_H #define __ERROR_H #include #include #include "common.h" class error_c { private: char *error; public: error_c(char *nerror) { error = strdup(nerror); if (!error) die("strdup"); }; ~error_c() { if (error) free(error); }; char *get_error() { return error; }; }; #endif // __ERROR_H