summaryrefslogtreecommitdiff
path: root/include/raise.h
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 17:07:39 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 17:07:39 +0000
commit37da2899f40661e3e9631e497da8dc59b971cbd0 (patch)
treecbc6d4680e347d906f5fa7fca73214418741df72 /include/raise.h
parent54bc8ff236ac10b3eaa928fd6bcfc0cdb2ba46ae (diff)
20060303a
Diffstat (limited to 'include/raise.h')
-rw-r--r--include/raise.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/raise.h b/include/raise.h
new file mode 100644
index 00000000..ef9fb25f
--- /dev/null
+++ b/include/raise.h
@@ -0,0 +1,26 @@
+/*
+ * Exceptions thrown by the interpreter
+ */
+extern char exAlt[]; /* alt send/recv on same chan */
+extern char exBusy[]; /* channel busy */
+extern char exModule[]; /* module not loaded */
+extern char exCompile[]; /* compile failed */
+extern char exCrange[]; /* constant range */
+extern char exCctovflw[]; /* constant table overflow */
+extern char exCphase[]; /* compiler phase error */
+extern char exType[]; /* type not constructed correctly */
+extern char exZdiv[]; /* zero divide */
+extern char exHeap[]; /* out of memory: heap */
+extern char exImage[]; /* out of memory: image */
+extern char exItype[]; /* inconsistent type */
+extern char exMathia[]; /* invalid math argument */
+extern char exBounds[]; /* array bounds error */
+extern char exNegsize[]; /* negative array size */
+extern char exNomem[]; /* out of memory: main */
+extern char exSpawn[]; /* spawn a builtin module */
+extern char exOp[]; /* illegal dis instruction */
+extern char exTcheck[]; /* type check */
+extern char exInval[]; /* invalid argument */
+extern char exNilref[]; /* dereference of nil */
+extern char exRange[]; /* value out of range */
+extern char exLoadedmod[]; /* need newmod */