aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Imaging/ImageException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 18:52:57 +0800
committercrupest <crupest@outlook.com>2021-04-27 18:52:57 +0800
commit1b751781f0681a047f3d3d6097009478886ee2f5 (patch)
tree4710ab0c761a264f090f9aa74a45e62fd39450f8 /BackEnd/Timeline/Services/Imaging/ImageException.cs
parent6c9778b55dd8367d38280c66e0f308c5332029ed (diff)
downloadtimeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.gz
timeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.bz2
timeline-1b751781f0681a047f3d3d6097009478886ee2f5.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/Imaging/ImageException.cs')
-rw-r--r--BackEnd/Timeline/Services/Imaging/ImageException.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/BackEnd/Timeline/Services/Imaging/ImageException.cs b/BackEnd/Timeline/Services/Imaging/ImageException.cs
index 926ecc0a..12aefa0a 100644
--- a/BackEnd/Timeline/Services/Imaging/ImageException.cs
+++ b/BackEnd/Timeline/Services/Imaging/ImageException.cs
@@ -19,7 +19,7 @@ namespace Timeline.Services.Imaging
/// <summary>
/// Image is not of required size.
/// </summary>
- NotSquare,
+ BadSize,
/// <summary>
/// Other unknown errer.
/// </summary>
@@ -42,16 +42,13 @@ namespace Timeline.Services.Imaging
{
ErrorReason.CantDecode => Resource.ExceptionImageReasonCantDecode,
ErrorReason.UnmatchedFormat => Resource.ExceptionImageReasonUnmatchedFormat,
- ErrorReason.NotSquare => Resource.ExceptionImageReasonBadSize,
+ ErrorReason.BadSize => Resource.ExceptionImageReasonBadSize,
_ => Resource.ExceptionImageReasonUnknownError
});
public ErrorReason Error { get; }
-#pragma warning disable CA1819 // Properties should not return arrays
public byte[]? ImageData { get; }
-#pragma warning restore CA1819 // Properties should not return arrays
public string? RequestType { get; }
-
// This field will be null if decoding failed.
public string? RealType { get; }
}