1
/*****************************************************************************
2
* error.c: error handling routine
3
*****************************************************************************
4
* Copyright (C) 2002-2004 VideoLAN
5
* $Id: error.c 6961 2004-03-05 17:34:23Z sam $
7
* Authors: Samuel Hocevar <sam@zoy.org>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22
*****************************************************************************/
24
/*****************************************************************************
26
*****************************************************************************/
29
/*****************************************************************************
30
* vlc_error: strerror() equivalent
31
*****************************************************************************
32
* This function returns a string describing the error code passed in the
33
* argument. A list of all errors can be found in include/vlc/vlc.h.
34
*****************************************************************************/
35
char const * vlc_error ( int i_err )
43
return "not enough memory";
45
return "thread error";
50
return "module not found";
53
return "object not found";
55
return "bad object type";
58
return "variable not found";
60
return "bad variable value";
63
return "program exited";
65
return "generic error";
67
return "unknown error";