~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to NuxCore/Error.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-11-18 19:17:32 UTC
  • Revision ID: james.westby@ubuntu.com-20101118191732-rn35790vekj6o4my
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2010 Inalogic Inc.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU Lesser General Public License version 3, as
 
6
 * published by the  Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
 
12
 * License for more details.
 
13
 *
 
14
 * You should have received a copy of both the GNU Lesser General Public
 
15
 * License version 3 along with this program.  If not, see
 
16
 * <http://www.gnu.org/licenses/>
 
17
 *
 
18
 * Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
 
19
 *
 
20
 */
 
21
 
 
22
 
 
23
#ifndef NYERROR_H
 
24
#define NYERROR_H
 
25
 
 
26
//#include <iostream>
 
27
//#include <error.h>
 
28
//#include <errno.h>
 
29
//#include <stdio.h>
 
30
 
 
31
//void ny_output_error(const char *error_msg);
 
32
//void ny_output_system_error(const char *error_msg);
 
33
//
 
34
//void ny_output_error(const char *error_msg)
 
35
//{
 
36
//    cout << error_msg << endl;
 
37
//}
 
38
//
 
39
//void ny_output_system_error(const char *error_msg)
 
40
//{
 
41
//    perror(error_msg);
 
42
//}
 
43
 
 
44
 
 
45
 
 
46
typedef enum
 
47
{
 
48
  HR_SUCCESS,
 
49
  HR_FAIL,
 
50
  HR_INVALID_ARG,
 
51
  HR_INVALID_CALL,
 
52
  HR_NOT_ENOUGH_MEMORY,
 
53
 
 
54
  HR_FILE_NOT_FOUND,
 
55
  HR_FILE_IO_FAIL,
 
56
  HR_UNSUPPORTED_FORMAT,
 
57
 
 
58
  HR_UNKNOW_ERROR
 
59
} HReport;
 
60
 
 
61
#endif // NYERROR_H
 
62
 
 
63