From cafc454cfbd316175ce1234741699ce43cb43341 Mon Sep 17 00:00:00 2001 From: Patrick Barron Date: Tue, 10 Jan 2023 19:41:55 -0500 Subject: Use file-scoped namespaces in Jellyfin.Drawing.Skia --- src/Jellyfin.Drawing.Skia/SkiaCodecException.cs | 67 ++++++++++++------------- 1 file changed, 33 insertions(+), 34 deletions(-) (limited to 'src/Jellyfin.Drawing.Skia/SkiaCodecException.cs') diff --git a/src/Jellyfin.Drawing.Skia/SkiaCodecException.cs b/src/Jellyfin.Drawing.Skia/SkiaCodecException.cs index 9a50a4d62..581fa000d 100644 --- a/src/Jellyfin.Drawing.Skia/SkiaCodecException.cs +++ b/src/Jellyfin.Drawing.Skia/SkiaCodecException.cs @@ -1,45 +1,44 @@ using System.Globalization; using SkiaSharp; -namespace Jellyfin.Drawing.Skia +namespace Jellyfin.Drawing.Skia; + +/// +/// Represents errors that occur during interaction with Skia codecs. +/// +public class SkiaCodecException : SkiaException { /// - /// Represents errors that occur during interaction with Skia codecs. + /// Initializes a new instance of the class. /// - public class SkiaCodecException : SkiaException + /// The non-successful codec result returned by Skia. + public SkiaCodecException(SKCodecResult result) { - /// - /// Initializes a new instance of the class. - /// - /// The non-successful codec result returned by Skia. - public SkiaCodecException(SKCodecResult result) - { - CodecResult = result; - } + CodecResult = result; + } - /// - /// Initializes a new instance of the class - /// with a specified error message. - /// - /// The non-successful codec result returned by Skia. - /// The message that describes the error. - public SkiaCodecException(SKCodecResult result, string message) - : base(message) - { - CodecResult = result; - } + /// + /// Initializes a new instance of the class + /// with a specified error message. + /// + /// The non-successful codec result returned by Skia. + /// The message that describes the error. + public SkiaCodecException(SKCodecResult result, string message) + : base(message) + { + CodecResult = result; + } - /// - /// Gets the non-successful codec result returned by Skia. - /// - public SKCodecResult CodecResult { get; } + /// + /// Gets the non-successful codec result returned by Skia. + /// + public SKCodecResult CodecResult { get; } - /// - public override string ToString() - => string.Format( - CultureInfo.InvariantCulture, - "Non-success codec result: {0}\n{1}", - CodecResult, - base.ToString()); - } + /// + public override string ToString() + => string.Format( + CultureInfo.InvariantCulture, + "Non-success codec result: {0}\n{1}", + CodecResult, + base.ToString()); } -- cgit v1.2.3