diff --git a/LiteDB/Utils/Constants.cs b/LiteDB/Utils/Constants.cs index ffd5f31a8..2d4d5c0d7 100644 --- a/LiteDB/Utils/Constants.cs +++ b/LiteDB/Utils/Constants.cs @@ -131,7 +131,7 @@ public static void ENSURE(bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB ENSURE: " + message); } } } @@ -150,13 +150,13 @@ public static void ENSURE(bool ifTest, bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB ENSURE: " + message); } } } /// - /// Ensure condition is true, otherwise throw exception (check contract) + /// Ensure condition is true, otherwise throw exception (runs only in DEBUG mode) /// [DebuggerHidden] [Conditional("DEBUG")] @@ -170,7 +170,7 @@ public static void DEBUG(bool conditional, string message = null) } else { - throw new Exception("LiteDB contract violation: " + message); + throw new Exception("LiteDB DEBUG: " + message); } } }