aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Drawing.Skia/SkiaCodecException.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-01-09 18:26:22 +0100
committerBond_009 <bond.009@outlook.com>2020-01-09 18:26:22 +0100
commitb50c4938e19eaa4508dd9192bc63c3788c2fa3eb (patch)
treee8a29d7c1ecc22b20287a940d757d635b5208b00 /Jellyfin.Drawing.Skia/SkiaCodecException.cs
parenta1ca50fd5a74eafa6e609976d90cad42b54137e5 (diff)
parent162c1ac7b7fde0e4929cf262b0f275e3eb15524c (diff)
Merge branch 'master' into namingtests
Diffstat (limited to 'Jellyfin.Drawing.Skia/SkiaCodecException.cs')
-rw-r--r--Jellyfin.Drawing.Skia/SkiaCodecException.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Jellyfin.Drawing.Skia/SkiaCodecException.cs b/Jellyfin.Drawing.Skia/SkiaCodecException.cs
index f848636bc..8158b846d 100644
--- a/Jellyfin.Drawing.Skia/SkiaCodecException.cs
+++ b/Jellyfin.Drawing.Skia/SkiaCodecException.cs
@@ -1,3 +1,4 @@
+using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using SkiaSharp;
@@ -9,15 +10,9 @@ namespace Jellyfin.Drawing.Skia
public class SkiaCodecException : SkiaException
{
/// <summary>
- /// Returns the non-successfull codec result returned by Skia.
- /// </summary>
- /// <value>The non-successfull codec result returned by Skia.</value>
- public SKCodecResult CodecResult { get; }
-
- /// <summary>
/// Initializes a new instance of the <see cref="SkiaCodecException" /> class.
/// </summary>
- /// <param name="result">The non-successfull codec result returned by Skia.</param>
+ /// <param name="result">The non-successful codec result returned by Skia.</param>
public SkiaCodecException(SKCodecResult result) : base()
{
CodecResult = result;
@@ -27,7 +22,7 @@ namespace Jellyfin.Drawing.Skia
/// Initializes a new instance of the <see cref="SkiaCodecException" /> class
/// with a specified error message.
/// </summary>
- /// <param name="result">The non-successfull codec result returned by Skia.</param>
+ /// <param name="result">The non-successful codec result returned by Skia.</param>
/// <param name="message">The message that describes the error.</param>
public SkiaCodecException(SKCodecResult result, string message)
: base(message)
@@ -35,6 +30,11 @@ namespace Jellyfin.Drawing.Skia
CodecResult = result;
}
+ /// <summary>
+ /// Gets the non-successful codec result returned by Skia.
+ /// </summary>
+ public SKCodecResult CodecResult { get; }
+
/// <inheritdoc />
public override string ToString()
=> string.Format(