private BitError getError (int errorCode) {
        switch (errorCode) {
            case 1:
                return BitError.ONE_BIT_ERROR;
            case 2:
                return BitError.TWO_BIT_ERROR;
            case 3:
                return BitError.THREE_BIT_ERROR;
            case 4:
                return BitError.RANDOM_ZERO_TO_THREE_ERROR;
            case 5:
                return BitError.RANDOM_ZERO_OR_ONE_ERROR;
            case 0:
            default:
                return BitError.NO_ERROR;
        }
    }