From 98053c0fc6e27998ccb8e0ad75900d2b48d6f70e Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 29 Aug 2023 15:47:37 +1000 Subject: Moved thumbnail generation from media controller to media service --- Exception.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Exception.cs') diff --git a/Exception.cs b/Exception.cs index 528be52..2005b1a 100644 --- a/Exception.cs +++ b/Exception.cs @@ -9,6 +9,13 @@ public class HBException : Exception { : base(message, inner) {} } +public class ObjectNotFoundException : HBException { + public Guid Guid { get; set; } + + public ObjectNotFoundException(Guid guid) + : base($"Object not found: {guid}") {} +} + public class MediaException : HBException { public Media? Media { get; set; } @@ -20,6 +27,9 @@ public class MediaException : HBException { public class MediaCreateException : MediaException { public MediaCreateException(string message) : base(message) {} - public MediaCreateException(string message, Media media) - : base(message, media) {} +} + +public class ThumbnailException : MediaException { + public ThumbnailException(string message, Media media) + :base(message, media) {} } -- cgit v1.3