using System;
using System.Runtime.Serialization;

namespace ScopedUnitOfWork.Interfaces.Exceptions
{
    [Serializable]
    public class IncorrectUnitOfWorkUsageException : InvalidOperationException
    {
        public IncorrectUnitOfWorkUsageException()
        {
        }

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

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

        protected IncorrectUnitOfWorkUsageException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}