2015-11-05 15:05:25 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Andrew Kelley
|
|
|
|
*
|
|
|
|
* This file is part of zig, which is MIT licensed.
|
|
|
|
* See http://opensource.org/licenses/MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ERROR_HPP
|
|
|
|
#define ERROR_HPP
|
|
|
|
|
|
|
|
enum Error {
|
2015-11-30 17:11:31 +08:00
|
|
|
ErrorNone,
|
2015-11-05 15:05:25 +08:00
|
|
|
ErrorNoMem,
|
|
|
|
ErrorInvalidFormat,
|
2015-12-01 10:58:53 +08:00
|
|
|
ErrorSemanticAnalyzeFail,
|
2015-12-01 17:29:21 +08:00
|
|
|
ErrorAccess,
|
|
|
|
ErrorInterrupted,
|
|
|
|
ErrorSystemResources,
|
|
|
|
ErrorFileNotFound,
|
|
|
|
ErrorFileSystem,
|
|
|
|
ErrorFileTooBig,
|
2015-11-05 15:05:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const char *err_str(int err);
|
|
|
|
|
|
|
|
#endif
|