diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
commit | 7a54c3fea708f25303c27630ae2bc8101b9390c3 (patch) | |
tree | 8a9f0cb6d6b6bd33d5ce4f3e987e339e433f396a /BackEnd/Timeline/Services/Imaging/ImageException.cs | |
parent | 2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (diff) | |
download | timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.gz timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.bz2 timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/Imaging/ImageException.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Imaging/ImageException.cs | 7 |
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; }
}
|