<commit_before><commit_msg>Add FileOverrideException<commit_after>﻿using System;
using System.Runtime.Serialization;

namespace Gamedalf.Infrastructure.Exceptions
{
    /// <summary>
    /// The exception that is thrown when a file is about to be override, 
    /// even though FileHandler._override was initiated with false.
    /// </summary>
    public class FileOverrideException : ApplicationException
    {
        // Summary:
        //     Initializes a new instance of the 
        //     Gamedalf.Infrastructure.Exceptions.FileOverrideException class.
        public FileOverrideException() : base() { }
        //
        // Summary:
        //     Initializes a new instance of the
        //     Gamedalf.Infrastructure.Exceptions.FileOverrideException class with
        //     a specified error message.
        //
        // Parameters:
        //   message:
        //     A message that describes the error.
        public FileOverrideException(string message) : base(message) { }
        //
        // Summary:
        //     Initializes a new instance of the
        //     Gamedalf.Infrastructure.Exceptions.FileOverrideException class with
        //     serialized data.
        //
        // Parameters:
        //   info:
        //     The object that holds the serialized object data.
        //
        //   context:
        //     The contextual information about the source or destination.
        protected FileOverrideException(SerializationInfo info, StreamingContext context) : base(info, context) { }
        //
        // Summary:
        //     Initializes a new instance of the 
        //     Gamedalf.Infrastructure.Exceptions.FileOverrideException class with
        //     a specified error message and a reference to the inner exception that is
        //     the cause of this exception.
        //
        // Parameters:
        //   message:
        //     The error message that explains the reason for the exception.
        //
        //   innerException:
        //     The exception that is the cause of the current exception. If the innerException
        //     parameter is not a null reference, the current exception is raised in a catch
        //     block that handles the inner exception.
        public FileOverrideException(string message, Exception innerException) : base(message, innerException) { }
    }
}
{'fraction_non_alphanumeric': 0.07721518987341772, 'fraction_numerical': 0.0, 'mean_word_length': 1.8531889290012034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2140220', 'n_tokens_mistral': 542, 'n_tokens_neox': 540, 'n_words': 190}