<commit_before>//--------------------------------------
//  <NAME>
//  Auto-Updater
//  github.com/denkers/auto-updater
//--------------------------------------

package com.denker.updater.io;

public class UpdateException extends Exception 
{
    public static enum ErrorCode
    {
        CLIENT_CONN_FAIL,
        SVERSION_CHECK_FAIL,
        CVERSION_CHECK_FAIL,
        PATCH_DL_ERR,
        UNPACK_PATCH_ERR,
        REMOVE_PATCH_ERR,
    }
    
    private ErrorCode errorCode;
    
    public UpdateException(ErrorCode errorCode)
    {
        this.errorCode  =   errorCode;
    }
    

    public ErrorCode getErrorCode()
    {
        return errorCode;
    }
}<commit_msg>Added error code messages in io.UpdateException<commit_after>//--------------------------------------
//  <NAME>
//  Auto-Updater
//  github.com/denkers/auto-updater
//--------------------------------------

package com.denker.updater.io;

public class UpdateException extends Exception 
{
    public static enum ErrorCode
    {
        CLIENT_CONN_FAIL,
        SVERSION_CHECK_FAIL,
        CVERSION_CHECK_FAIL,
        PATCH_DL_ERR,
        UNPACK_PATCH_ERR,
        REMOVE_PATCH_ERR,
    }
    
    private final ErrorCode errorCode;
    
    public UpdateException(ErrorCode errorCode)
    {
        this.errorCode  =   errorCode;
    }
    
    @Override
    public String getMessage()
    {
        switch(errorCode)
        {
            case CLIENT_CONN_FAIL: return "Failed to connect to FTP server";
            case SVERSION_CHECK_FAIL: return "Failed to check server application version";
            case CVERSION_CHECK_FAIL: return "Failed to check client application version";
            case PATCH_DL_ERR: return "Error occured downloading patch";
            case UNPACK_PATCH_ERR: return "Failed to unpack patch contents";
            case REMOVE_PATCH_ERR: return "Failed to remove patch package";
            default: return "Error code not found";
        }
    }

    public ErrorCode getErrorCode()
    {
        return errorCode;
    }
}
{'fraction_non_alphanumeric': 0.13894324853228962, 'fraction_numerical': 0.0, 'mean_word_length': 1.7747625508819538, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6885876', 'n_tokens_mistral': 571, 'n_tokens_neox': 575, 'n_words': 135}