aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-11-14 18:20:06 +0100
committerTristan Gingold <tgingold@free.fr>2018-11-14 18:20:06 +0100
commitdb8ad8c1376eef09ef520fd0dd0b6b8d47f17b58 (patch)
tree84badfb6c3734b33627077f253227473f3fe64d1
parent4065acd8711297f5aac2c929b7a6a2259c582fef (diff)
downloadghdl-db8ad8c1376eef09ef520fd0dd0b6b8d47f17b58.tar.gz
ghdl-db8ad8c1376eef09ef520fd0dd0b6b8d47f17b58.tar.bz2
ghdl-db8ad8c1376eef09ef520fd0dd0b6b8d47f17b58.zip
types: add Fatal_Error.
-rw-r--r--src/types.ads3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.ads b/src/types.ads
index 1ab3c50c2..519ff94ee 100644
--- a/src/types.ads
+++ b/src/types.ads
@@ -158,6 +158,9 @@ package Types is
-- is detected.
Internal_Error: exception;
+ -- Unrecoverable error. Just exit() with an error status.
+ Fatal_Error : exception;
+
-- In some case, a low level subprogram can't handle error
-- (e.g eval_pos). In this case it is easier to raise an exception and
-- let upper level subprograms handle the case.