Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (23 sloc) 0.91 kB
8354436 @mimaki add file header
mimaki authored
1 /*
2 ** error.h - Exception class
4ec6d41 rm whitespace
roco authored
3 **
8354436 @mimaki add file header
mimaki authored
4 ** See Copyright Notice in mruby.h
5 */
6
e0d6430 @mimaki add mruby sources
mimaki authored
7 #ifndef MRUBY_ERROR_H
8 #define MRUBY_ERROR_H
9
10 struct RException {
11 MRUBY_OBJECT_HEADER;
12 };
13
14 void mrb_sys_fail(mrb_state *mrb, const char *mesg);
15 void mrb_exc_raise(mrb_state *mrb, mrb_value mesg);
16 void mrb_bug_errno(const char*, int);
17 int sysexit_status(mrb_state *mrb, mrb_value err);
18 void error_pos(void);
19 mrb_value mrb_exc_new3(mrb_state *mrb, struct RClass* c, mrb_value str);
20 mrb_value make_exception(mrb_state *mrb, int argc, mrb_value *argv, int isstr);
21 mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len);
22 mrb_value mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv);
23 mrb_value mrb_sprintf(mrb_state *mrb, const char *fmt, ...);
24 void mrb_name_error(mrb_state *mrb, mrb_sym id, const char *fmt, ...);
25 void mrb_exc_print(mrb_state *mrb, struct RObject *exc);
26
27 #endif /* MRUBY_ERROR_H */
Something went wrong with that request. Please try again.