diff --git a/Jellyfin.Plugin.AnilistSync/API/Exceptions/AnilistAPIException.cs b/Jellyfin.Plugin.AnilistSync/API/Exceptions/AnilistAPIException.cs new file mode 100644 index 0000000..ef7b2fa --- /dev/null +++ b/Jellyfin.Plugin.AnilistSync/API/Exceptions/AnilistAPIException.cs @@ -0,0 +1,60 @@ +using System; + +namespace Jellyfin.Plugin.AnilistSync.API.Exceptions +{ + /// + public class AnilistAPIException : Exception + { + /// + /// Anilist error status code + /// + public int? statusCode; + + /// + /// Array of locations of errors + /// + public Location[]? locations; + + /// + /// Initializes a new instance of the class. + /// + public AnilistAPIException() + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// The error message. + public AnilistAPIException(string message) + : base(message) + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// The error message. + /// The inner exception. + public AnilistAPIException(string message, Exception inner) + : base(message, inner) + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// The error message + /// The error status code + /// The error locations array + public AnilistAPIException(string? message, int? statusCode, Location[]? locations) + : base(message) + { + this.statusCode = statusCode; + this.locations = locations; + } + } +} diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..43adb53 --- /dev/null +++ b/manifest.json @@ -0,0 +1,20 @@ +[ + { + "guid": "d02b875a-2a61-4d74-ae5f-394eca192f74", + "name": "AnilistSync", + "description": "This plugin will scrobble anime to Anilist for you", + "overview": "Scrobble to Anilist", + "owner": "ARufenach", + "category": "General", + "versions": [ + { + "version": "1.0.0", + "changelog": "Initial release", + "targetAbi": "10.7.0.0", + "sourceUrl": "https://github.com/ARufenach/jellyfin-plugin-anilist-sync/releases/download/v1.0.0/AnilistSync_1.0.0.zip", + "checksum": "f099d9935001c1e49c710517e8261765", + "timestamp": "2021-06-04T05:05:00Z" + } + ] + } +] \ No newline at end of file