BaseCriteria.ToString() throws exception if criteria has parameters, to prevent mistakes by using it without a query. DebuggerDisplayAttribute is used to control Visual Studio behaviour when displaying criteria objects