From e525dbb4eddc05ecf811c8a4e1afbf3196f80be7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 13 May 2021 15:52:56 +0300 Subject: Added service null argument checks and their error --- ExamTemplate/Common/ErrorMessages.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ExamTemplate/Common/ErrorMessages.cs (limited to 'ExamTemplate/Common/ErrorMessages.cs') diff --git a/ExamTemplate/Common/ErrorMessages.cs b/ExamTemplate/Common/ErrorMessages.cs new file mode 100644 index 0000000..fa15b8c --- /dev/null +++ b/ExamTemplate/Common/ErrorMessages.cs @@ -0,0 +1,12 @@ +using System; + +namespace ExamTemplate.Common +{ + public static class ErrorMessages + { + public static string NullObject(Type t) + { + return String.Format("{0} cannot be null!", t); + } + } +} -- cgit v1.2.3