<commit_before>package com.lookfirst.wepay;

import lombok.Getter;

/**
 * The possible errors that are generated by wepay itself
 * 
 * https://stage.wepay.com/developer/reference/errors 
 */
public class WePayException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	/** The raw error type string */
	@Getter
	String error;
	
	/** The error string converted to a known enum, or null if unknown */
	@Getter
	WePayError errorType;
	
	/** */
	public WePayException(String error, String errorDescription) {
		super(error + ": " + errorDescription);
		
		this.error = error;
		<commit_msg>Records the raw error text in the exception<commit_after>package com.lookfirst.wepay;

import lombok.Getter;

/**
 * The possible errors that are generated by wepay itself
 * 
 * https://stage.wepay.com/developer/reference/errors 
 */
public class WePayException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	/** The raw error type string */
	@Getter
	String error;
	
	/** The error string converted to a known enum, or null if unknown */
	@Getter
	WePayError errorType;
	
	/** The error text by itself */
	@Getter
	String errorText;
	
	/** */
	public WePayException(String error, String errorText) {
		super(error + ": " + errorText);
		
		this.error = error;
		this.errorText = errorText;
		
{'fraction_non_alphanumeric': 0.09977661950856292, 'fraction_numerical': 0.0014892032762472078, 'mean_word_length': 3.7491166077738516, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3423358', 'n_tokens_mistral': 418, 'n_tokens_neox': 390, 'n_words': 131}