<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VorliasEngine2D.Entities.Components
{
    class SetEntityInvalidException : Exception
    {
        public SetEntityInvalidException() : base("Attempted to set parent of a Component")
        {

        }
    }

    public interface IComponent
    {
        Entity Entity
        {<commit_msg>Added Exception for invalid component pairs<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VorliasEngine2D.Entities.Components
{
    /// <summary>
    /// Exception thrown if two components 'clash'
    /// </summary>
    public class InvalidComponentPairException : Exception
    {
        public InvalidComponentPairException(IComponent a, IComponent b) : base ("Cannot have a " + a.Name + " component with a " + b.Name + " component!")
        {

        }
    }

    public class SetEntityInvalidException : Exception
    {
        public SetEntityInvalidException() : base("Attempted to set parent of a Component")
        {

        }
    }

    public interface IComponent
    {
        Entity Entity
        {
{'fraction_non_alphanumeric': 0.08346709470304976, 'fraction_numerical': 0.0016051364365971107, 'mean_word_length': 2.790273556231003, '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': '4532598', 'n_tokens_mistral': 327, 'n_tokens_neox': 325, 'n_words': 92}