Newer
Older
eShopOnWeb-VerticalFeatureSlices / src / ApplicationCore / Exceptions / BasketNotFoundException.cs
@Derek Comartin Derek Comartin on 27 Jul 2021 681 bytes Init
using System;

namespace Microsoft.eShopWeb.ApplicationCore.Exceptions
{
    public class BasketNotFoundException : Exception
    {
        public BasketNotFoundException(int basketId) : base($"No basket found with id {basketId}")
        {
        }

        protected BasketNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context)
        {
        }

        public BasketNotFoundException(string message) : base(message)
        {
        }

        public BasketNotFoundException(string message, Exception innerException) : base(message, innerException)
        {
        }
    }
}