﻿using System;

namespace SecureCommunicationComponent.Exceptions
{
    /// <summary>
    ///     Is thrown when there is not a Mutex available.
    /// </summary>
    /// <seealso>
    ///     <cref>SecureCommunicationComponent.Exceptions.SecureCommunicationException</cref>
    /// </seealso>
    public class SecureCommunicationAvailableMutexException : SecureCommunicationException
    {
        public SecureCommunicationAvailableMutexException() : base("There is no Mutex object available.")
        {
        }

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

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

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