diff options
| author | Mark Monteiro <mark.monteiro23@gmail.com> | 2019-12-13 21:17:05 +0100 |
|---|---|---|
| committer | Mark Monteiro <mark.monteiro23@gmail.com> | 2019-12-13 21:17:05 +0100 |
| commit | 0cf9e59d5a945f7773737f1c8e9b0f1c05349d76 (patch) | |
| tree | 45df59ba8f369cfaccceae2d97912b737f4fcb64 /Jellyfin.Drawing.Skia/SkiaCodecException.cs | |
| parent | 88928118eb51b121aed0348494ef7456c1c55379 (diff) | |
Enable FxCop Analysis and fix issues
Diffstat (limited to 'Jellyfin.Drawing.Skia/SkiaCodecException.cs')
| -rw-r--r-- | Jellyfin.Drawing.Skia/SkiaCodecException.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Jellyfin.Drawing.Skia/SkiaCodecException.cs b/Jellyfin.Drawing.Skia/SkiaCodecException.cs index f848636bcb..c103670520 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; @@ -6,18 +7,19 @@ namespace Jellyfin.Drawing.Skia /// <summary> /// Represents errors that occur during interaction with Skia codecs. /// </summary> + [SuppressMessage("Design", "CA1032:Implement standard exception constructors", Justification = "A custom property, CodecResult, is required when creating this exception type.")] public class SkiaCodecException : SkiaException { /// <summary> - /// Returns the non-successfull codec result returned by Skia. + /// Returns the non-successful codec result returned by Skia. /// </summary> - /// <value>The non-successfull codec result returned by Skia.</value> + /// <value>The non-successful 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 +29,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) @@ -41,6 +43,6 @@ namespace Jellyfin.Drawing.Skia CultureInfo.InvariantCulture, "Non-success codec result: {0}\n{1}", CodecResult, - base.ToString()); + base.ToString()); } } |
