using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using BellRichM.Attribute.CodeCoverage;
using BellRichM.Exceptions;

namespace BellRichM.Identity.Api.Exceptions
{
  /// <summary>
  /// The exception thrown when unable to delete a user.
  /// </summary>
  /// <seealso cref="BusinessException" />
  [Serializable]
  [ExcludeFromCodeCoverage]
  public class DeleteUserException : BusinessException
  {
    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    public DeleteUserException()
      : base(string.Empty)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    public DeleteUserException(string code)
      : base(code)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    /// <param name="message">The message describing the exception.</param>
    public DeleteUserException(string code, string message)
      : base(code, message)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    /// <param name="message">The message describing the exception.</param>
    /// <param name="innerException">The inner exception.</param>
    public DeleteUserException(string code, string message, Exception innerException)
      : base(code, message, innerException)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    /// <param name="exceptionDetails">Additional details about the exception.</param>
    public DeleteUserException(string code, IEnumerable<ExceptionDetail> exceptionDetails)
      : base(code, exceptionDetails)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    /// <param name="exceptionDetails">Additional details about the exception.</param>
    /// <param name="message">The message describing the exception.</param>
    public DeleteUserException(string code, IEnumerable<ExceptionDetail> exceptionDetails, string message)
      : base(code, exceptionDetails, message)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="message">The message describing the exception.</param>
    /// <param name="innerException">The inner exception.</param>
    [ExcludeFromCodeCoverage]
    public DeleteUserException(string message, Exception innerException)
            : base(message, innerException)
    {
    }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="code">The code that provides additional detail.</param>
    /// <param name="exceptionDetails">Additional details about the exception.</param>
    /// <param name="message">The message describing the exception.</param>
    /// <param name="innerException">The inner exception.</param>
    public DeleteUserException(string code, IEnumerable<ExceptionDetail> exceptionDetails, string message, Exception innerException)
      : base(code, exceptionDetails, message, innerException)
      {
      }

    /// <summary>
    /// Initializes a new instance of the <see cref="DeleteUserException"/> class.
    /// </summary>
    /// <param name="info">The <see cref="SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param>
    /// <param name="context">The <see cref="StreamingContext"></see> that contains contextual information about the source or destination.</param>
    protected DeleteUserException(SerializationInfo info, StreamingContext context)
      : base(info, context)
      {
      }
  }
}