mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-17 04:24:16 -04:00
26 lines
671 B
C#
26 lines
671 B
C#
using System;
|
|
|
|
namespace Kyoo.Models.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// An exception raised when an item already exists in the database.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class DuplicatedItemException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Create a new <see cref="DuplicatedItemException"/> with the default message.
|
|
/// </summary>
|
|
public DuplicatedItemException()
|
|
: base("Already exists in the database.")
|
|
{ }
|
|
|
|
/// <summary>
|
|
/// Create a new <see cref="DuplicatedItemException"/> with a custom message.
|
|
/// </summary>
|
|
/// <param name="message">The message to use</param>
|
|
public DuplicatedItemException(string message)
|
|
: base(message)
|
|
{ }
|
|
}
|
|
} |