diff options
author | crupest <crupest@outlook.com> | 2020-06-13 00:28:35 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-13 00:28:35 +0800 |
commit | d6e9ae92a782f747752d9e26504dc2f27e723f04 (patch) | |
tree | 57e3d021f6bd2aaa747e1e8fbffdf6a2636977f5 /Timeline/Services/Exceptions/ExceptionMessageHelper.cs | |
parent | b2dcd4529bfb80fa2f1e6095cd5c976d4e90ec8e (diff) | |
download | timeline-d6e9ae92a782f747752d9e26504dc2f27e723f04.tar.gz timeline-d6e9ae92a782f747752d9e26504dc2f27e723f04.tar.bz2 timeline-d6e9ae92a782f747752d9e26504dc2f27e723f04.zip |
refactor(back): Fix #100 .
Diffstat (limited to 'Timeline/Services/Exceptions/ExceptionMessageHelper.cs')
-rw-r--r-- | Timeline/Services/Exceptions/ExceptionMessageHelper.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Timeline/Services/Exceptions/ExceptionMessageHelper.cs b/Timeline/Services/Exceptions/ExceptionMessageHelper.cs new file mode 100644 index 00000000..be3c42a4 --- /dev/null +++ b/Timeline/Services/Exceptions/ExceptionMessageHelper.cs @@ -0,0 +1,13 @@ +namespace Timeline.Services.Exceptions
+{
+ public static class ExceptionMessageHelper
+ {
+ public static string AppendAdditionalMessage(this string origin, string? message)
+ {
+ if (message == null)
+ return origin;
+ else
+ return origin + " " + message;
+ }
+ }
+}
|