From 88d9f0880626736fe58e90b00fb85f1e7a49c854 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 7 Apr 2013 18:11:27 -0400 Subject: [PATCH] Add a bunch of comments about the different exceptions. --- src/support/ExceptionMessage.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/support/ExceptionMessage.h b/src/support/ExceptionMessage.h index 347c7024f2..fea2efa9fd 100644 --- a/src/support/ExceptionMessage.h +++ b/src/support/ExceptionMessage.h @@ -22,6 +22,22 @@ namespace lyx { namespace support { +/// LyX support three types of custom exceptions. In order of +/// increasing seriousness, these are: +/// +/// WarningException +/// Intended for unexpected situations that we do not expect +/// to compromise further operation. It has the effect of +/// aborting whatever operation in in process. +/// +/// BufferException +/// Intended for situations that indicate some problem with a +/// Buffer or its related data structures. The Buffer will be +/// closed, in emergency style. +/// +/// ErrorException +/// Intended for situations that indicate a global problem +/// with the program. It will lead to an emergency shutdown. enum ExceptionType { ErrorException, -- 2.39.5