X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FExceptionMessage.h;h=fea2efa9fdc452eafba1862bfc20a1c868b23d8b;hb=36e5864a8264b428ee7a59a09b25830b49d9c5af;hp=1fa256451139a8e11ab29dff4d8d25da21aaf27b;hpb=a5263e0f927034885870a65053ef3908d1c6f885;p=lyx.git diff --git a/src/support/ExceptionMessage.h b/src/support/ExceptionMessage.h index 1fa2564511..fea2efa9fd 100644 --- a/src/support/ExceptionMessage.h +++ b/src/support/ExceptionMessage.h @@ -22,9 +22,26 @@ 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, + BufferException, WarningException };