aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Common
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 15:52:56 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 15:52:56 +0300
commite525dbb4eddc05ecf811c8a4e1afbf3196f80be7 (patch)
tree8b2af3252b5d20b425ab90ed8befa31dca455057 /ExamTemplate/Common
parentef14a1e9b7ecbcf23fdf3e47a260b81772fc3816 (diff)
downloadit-kariera-exam-template-e525dbb4eddc05ecf811c8a4e1afbf3196f80be7.tar
it-kariera-exam-template-e525dbb4eddc05ecf811c8a4e1afbf3196f80be7.tar.gz
it-kariera-exam-template-e525dbb4eddc05ecf811c8a4e1afbf3196f80be7.zip
Added service null argument checks and their error
Diffstat (limited to 'ExamTemplate/Common')
-rw-r--r--ExamTemplate/Common/ErrorMessages.cs12
1 files changed, 12 insertions, 0 deletions
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);
+ }
+ }
+}