diff options
| author | crobibero <cody@robibe.ro> | 2020-04-21 07:36:22 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-04-21 07:36:22 -0600 |
| commit | 1175ce3f97fdebc6fdb489ce65deaac59c7b7f87 (patch) | |
| tree | 9bdf7c8820dd0c687ee11a3313e998738e0188eb /Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs | |
| parent | 16401ec7ae078b2b7c4c65e3792cb4c4159490d2 (diff) | |
Add Exception Middleware
Diffstat (limited to 'Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs')
| -rw-r--r-- | Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs b/Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs new file mode 100644 index 000000000..d2b48d4ae --- /dev/null +++ b/Jellyfin.Api/Models/ExceptionDtos/ExceptionDto.cs @@ -0,0 +1,14 @@ +namespace Jellyfin.Api.Models.ExceptionDtos +{ + /// <summary> + /// Exception Dto. + /// Used for graceful handling of API exceptions. + /// </summary> + public class ExceptionDto + { + /// <summary> + /// Gets or sets exception message. + /// </summary> + public string Message { get; set; } + } +} |
