<commit_before>package io.domisum.lib.auxiliumlib.exceptions;

import io.domisum.lib.auxiliumlib.annotations.API;

@API
public class InvalidConfigurationException
		extends Exception
{
	
	@API
	public InvalidConfigurationException(String message)
	{
		super(message);
	}
	
	@API
	public InvalidConfigurationException(String message, Throwable cause)
	{
		super(message, cause);
	}
	
}
<commit_msg>Added validation methods to InvalidConfigurationException<commit_after>package io.domisum.lib.auxiliumlib.exceptions;

import io.domisum.lib.auxiliumlib.annotations.API;

@API
public class InvalidConfigurationException
		extends Exception
{
	
	// INIT
	@API
	public InvalidConfigurationException(String message)
	{
		super(message);
	}
	
	@API
	public InvalidConfigurationException(String message, Throwable cause)
	{
		super(message, cause);
	}
	
	
	// VALIDATION
	@API
	@SuppressWarnings("BooleanParameter")
	public static void validateIsTrue(boolean expression, String failMessage)
			throws InvalidConfigurationException
	{
		if(!expression)
			throw new InvalidConfigurationException(failMessage);
	}
	
	@API
	public static void validateNotNull(Object object, String objectName)
			throws InvalidConfigurationException
	{
		if(object == null)
			throw new InvalidConfigurationException(objectName+" can't be null");
	}
	
}

{'fraction_non_alphanumeric': 0.08150943396226415, 'fraction_numerical': 0.0, 'mean_word_length': 5.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1698930', 'n_tokens_mistral': 412, 'n_tokens_neox': 381, 'n_words': 85}